From 1f2db14c2d46c382be181072314553fb01349c25 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 20 Feb 2015 21:05:07 +0100 Subject: [PATCH] (rpng_nbio.c) Cleanups --- libretro-common/formats/png/rpng_nbio.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/libretro-common/formats/png/rpng_nbio.c b/libretro-common/formats/png/rpng_nbio.c index 676d0d709c..1e57ebd97e 100644 --- a/libretro-common/formats/png/rpng_nbio.c +++ b/libretro-common/formats/png/rpng_nbio.c @@ -88,20 +88,14 @@ static bool read_chunk_header(uint8_t *buf, struct png_chunk *chunk) uint8_t dword[4] = {0}; for (i = 0; i < 4; i++) - { dword[i] = buf[i]; - fprintf(stderr, "dword is: %c\n", buf[i]); - } buf += 4; chunk->size = dword_be(dword); for (i = 0; i < 4; i++) - { chunk->type[i] = buf[i]; - fprintf(stderr, "chun type is: %c\n", buf[i]); - } buf += 4; @@ -154,15 +148,6 @@ static bool png_parse_ihdr(uint8_t *buf, ihdr->filter = buf[11]; ihdr->interlace = buf[12]; - buf += 4 + 4 + 1 + 1 + 1 + 1 + 1; - - fprintf(stderr, "IHDR: (%u x %u), bpc = %u, palette = %s, color = %s, alpha = %s, adam7 = %s.\n", - ihdr->width, ihdr->height, - ihdr->depth, ihdr->color_type == 3 ? "yes" : "no", - ihdr->color_type & 2 ? "yes" : "no", - ihdr->color_type & 4 ? "yes" : "no", - ihdr->interlace == 1 ? "yes" : "no"); - if (ihdr->width == 0 || ihdr->height == 0) GOTO_END_ERROR();