diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-10-08 05:32:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-10-08 05:32:07 +0000 |
commit | 241ff0b6bd15f079ce58635bca921395db8f0bb4 (patch) | |
tree | a12d64f8c34af754b7371aa9f663526d6eb669fe /gdk-pixbuf/io-pnm.c | |
parent | 07e7719441f5927bc3c482717fc53f8529186e3a (diff) | |
download | gtk+-241ff0b6bd15f079ce58635bca921395db8f0bb4.tar.gz |
Cleanups
Diffstat (limited to 'gdk-pixbuf/io-pnm.c')
-rw-r--r-- | gdk-pixbuf/io-pnm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c index 08489ef988..efba937444 100644 --- a/gdk-pixbuf/io-pnm.c +++ b/gdk-pixbuf/io-pnm.c @@ -108,19 +108,17 @@ explode_bitmap_into_buf (PnmLoaderContext *context) guchar *from, *to, data; gint bit; guchar *dptr; - gint wid, x, y; + gint wid, x; g_return_if_fail (context != NULL); g_return_if_fail (context->dptr != NULL); /* I'm no clever bit-hacker so I'm sure this can be optimized */ dptr = context->dptr; - y = context->output_row; wid = context->width; from = dptr + ((wid - 1) / 8); to = dptr + (wid - 1) * 3; -/* bit = 7 - (((y+1)*wid-1) % 8); */ bit = 7 - ((wid-1) % 8); /* get first byte and align properly */ @@ -892,8 +890,6 @@ gdk_pixbuf__pnm_image_load_increment (gpointer data, { PnmLoaderContext *context = (PnmLoaderContext *)data; PnmIOBuffer *inbuf; - guchar *old_byte; - guint old_nbytes; const guchar *bufhd; guint num_left, spinguard; gint retval; @@ -905,8 +901,6 @@ gdk_pixbuf__pnm_image_load_increment (gpointer data, bufhd = buf; inbuf = &context->inbuf; - old_nbytes = inbuf->nbytes; - old_byte = inbuf->byte; num_left = size; spinguard = 0; |