file-xwd: Delete dead variable and assignment

This commit is contained in:
Mukund Sivaraman
2011-10-11 10:04:43 +05:30
parent 238736fb8f
commit f3d6e1ce8c

View File

@ -1831,7 +1831,7 @@ load_xwd_f1_d24_b1 (const gchar *filename,
L_XWDCOLOR *xwdcolmap) L_XWDCOLOR *xwdcolmap)
{ {
register guchar *dest, outmask, inmask, do_reverse; register guchar *dest, outmask, inmask, do_reverse;
gint width, height, linepad, i, j, plane, fromright; gint width, height, i, j, plane, fromright;
gint tile_height, tile_start, tile_end; gint tile_height, tile_start, tile_end;
gint indexed, bytes_per_pixel; gint indexed, bytes_per_pixel;
gint maxred, maxgreen, maxblue; gint maxred, maxgreen, maxblue;
@ -1870,11 +1870,6 @@ load_xwd_f1_d24_b1 (const gchar *filename,
tile_height = gimp_tile_height (); tile_height = gimp_tile_height ();
data = g_malloc (tile_height * width * bytes_per_pixel); data = g_malloc (tile_height * width * bytes_per_pixel);
linepad = xwdhdr->l_bytes_per_line
- (xwdhdr->l_pixmap_width+7)/8;
if (linepad < 0)
linepad = 0;
for (j = 0; j < 256; j++) /* Create an array for reversing bits */ for (j = 0; j < 256; j++) /* Create an array for reversing bits */
{ {
inmask = 0; inmask = 0;