From d89d8b5ee941e9aeab4d21ef865446d0ff076e37 Mon Sep 17 00:00:00 2001 From: coco875 Date: Wed, 8 Jan 2025 03:28:22 +0100 Subject: [PATCH] Update PngFactory.cpp --- src/resource/factory/PngFactory.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/resource/factory/PngFactory.cpp b/src/resource/factory/PngFactory.cpp index f4cb88832..b2229aea7 100644 --- a/src/resource/factory/PngFactory.cpp +++ b/src/resource/factory/PngFactory.cpp @@ -6,16 +6,6 @@ namespace Fast { -extern "C" { -void user_error_fn(png_structp png_ptr, png_const_charp error_msg) { - SPDLOG_ERROR("libpng error: {}", error_msg); -} - -void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg) { - SPDLOG_WARN("libpng warning: {}", warning_msg); -} -} - std::shared_ptr ResourceFactoryImageTexture::ReadResource(std::shared_ptr file) { if (!FileHasValidFormatAndReader(file)) { return nullptr;