Skip to content

Commit

Permalink
Update PngFactory.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
coco875 committed Jan 8, 2025
1 parent 415c030 commit d89d8b5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/resource/factory/PngFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Ship::IResource> ResourceFactoryImageTexture::ReadResource(std::shared_ptr<Ship::File> file) {
if (!FileHasValidFormatAndReader(file)) {
return nullptr;
Expand Down

0 comments on commit d89d8b5

Please sign in to comment.