Remove unused variables.

SVN revision: 25517
This commit is contained in:
Sebastian Dransfeld 2006-09-06 07:09:05 +00:00
parent 42836e3de1
commit f393a78080
3 changed files with 5 additions and 12 deletions

View File

@ -126,7 +126,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
char type[2];
unsigned long size, offset, headSize, comp, imgsize, j, k, l;
unsigned short tmpShort, planes, bitcount, ncols, skip;
unsigned char tempchar, byte = 0, g, b, r;
unsigned char byte = 0, g, b, r;
unsigned long i, w, h;
unsigned short x, y;
DATA32 *ptr, *data_end;
@ -806,7 +806,7 @@ save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity)
{
FILE *f;
Imlib_Color pixel_color;
unsigned long i, j, pad, size;
unsigned long i, j, pad;
if (!im->data)
return 0;

View File

@ -268,7 +268,7 @@ int i;
static void deplane(DATA32 *row, int w, ILBM *ilbm, unsigned char *plane[])
{
unsigned long l;
int i, o, sl, x;
int i, o, x;
unsigned char bit, r, g, b, a, v, h, *pal;
pal = NULL;
@ -395,7 +395,7 @@ unsigned char bit, r, g, b, a, v, h, *pal;
char load(ImlibImage *im, ImlibProgressFunction progress, char progress_granularity, char immediate_load)
{
char *env;
int cancel, full, i, j, k, n, ok, y, z, gran, nexty, prevy;
int cancel, full, i, n, ok, y, z, gran, nexty, prevy;
unsigned char *plane[40];
ILBM ilbm;

View File

@ -321,8 +321,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
unsigned char *bufptr;
DATA32 *dataptr;
int y, pl = 0;
char pper = 0;
int y;
/* allocate the destination buffer */
im->data = malloc(im->w * im->h * sizeof(DATA32));
@ -409,9 +408,6 @@ load(ImlibImage * im, ImlibProgressFunction progress,
}
if (progress)
{
char per;
int l;
progress(im, 100, 0, 0, im->w, im->h);
} /* end for (each row) */
}
@ -519,9 +515,6 @@ load(ImlibImage * im, ImlibProgressFunction progress,
if (vinverted) tgaflip(im->data, im->w, im->h);
if (progress)
{
char per;
int l;
progress(im, 100, 0, 0, im->w, im->h);
} /* end for (each row) */
}