]> git.imager.perl.org - imager.git/commitdiff
PNG re-work: remove unused variables
authorTony Cook <tony@develop-help.com>
Mon, 9 Apr 2012 11:03:22 +0000 (21:03 +1000)
committerTony Cook <tony@develop-help.com>
Sun, 29 Apr 2012 03:40:56 +0000 (13:40 +1000)
PNG/impng.c

index 583a2b7ad474396ebb7aacc6d41917b61b49fe1e..502aee89d708369b83706834a6e56fd6d04f0fda 100644 (file)
@@ -228,12 +228,9 @@ i_readpng_wiol(io_glue *ig) {
   png_infop info_ptr;
   png_uint_32 width, height;
   int bit_depth, color_type, interlace_type;
-  int number_passes,y;
-  int channels,pass;
+  int channels;
   unsigned int sig_read;
   i_png_read_state rs;
-  i_img_dim wmax, hmax;
-  size_t bytes;
 
   rs.warnings = NULL;
   sig_read  = 0;
@@ -385,7 +382,6 @@ static i_img *
 read_direct16(png_structp png_ptr, png_infop info_ptr, int channels,
             i_img_dim width, i_img_dim height) {
   i_img * volatile vim = NULL;
-  int color_type = png_get_color_type(png_ptr, info_ptr);
   i_img_dim x, y;
   int number_passes, pass;
   i_img *im;