From a46a819e2d21ae4adef5e28bd3aaa5b21027ae69 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 21 Feb 2015 01:41:55 +0100 Subject: [PATCH] Get rid of unused 'increment_size' in rpng_nbio.c --- libretro-common/formats/png/rpng_nbio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libretro-common/formats/png/rpng_nbio.c b/libretro-common/formats/png/rpng_nbio.c index 4bf324e6db..955d047d93 100644 --- a/libretro-common/formats/png/rpng_nbio.c +++ b/libretro-common/formats/png/rpng_nbio.c @@ -171,7 +171,7 @@ bool rpng_nbio_load_image_argb_iterate(uint8_t *buf, struct png_chunk *chunk, uint32_t *palette, struct png_ihdr *ihdr, struct idat_buffer *idat_buf, - struct rpng_t *rpng, size_t *increment_size) + struct rpng_t *rpng) { unsigned i; @@ -327,7 +327,6 @@ bool rpng_nbio_load_image_argb(const char *path, uint32_t **data, struct rpng_t rpng = {0}; bool ret = true; void* ptr = NULL; - size_t increment = 0; { bool looped = false; @@ -365,7 +364,7 @@ bool rpng_nbio_load_image_argb(const char *path, uint32_t **data, if (!rpng_nbio_load_image_argb_iterate( buff_data, &chunk, palette, &ihdr, &idat_buf, - &rpng, &increment)) + &rpng)) break; buff_data += 4 + 4 + chunk.size + 4;