diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index fd6924645a..2bc718af24 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2002-11-04 Sven Neumann + + * io-bmp.c (DecodeHeader): removed redundant code that did nothing, + caused a compiler warning and is also not in the HEAD branch. + 2002-10-23 Matthias Clasen * io-gif.c (lzw_read_byte): Check for stack overflow throughout. diff --git a/gdk-pixbuf/io-bmp.c b/gdk-pixbuf/io-bmp.c index 953de1d274..36cc056bfb 100644 --- a/gdk-pixbuf/io-bmp.c +++ b/gdk-pixbuf/io-bmp.c @@ -392,8 +392,6 @@ static gboolean DecodeHeader(unsigned char *BFH, unsigned char *BIH, State->BufferDone = 0; if (State->Type <= 8) { - int biClrUsed = lsb_32 (&BIH[32]); - int n_colors = (biClrUsed ? biClrUsed : (1 << State->Header.depth)); State->read_state = READ_STATE_PALETTE; State->BufferSize = lsb_32 (&BFH[10]) - 14 - State->Header.size; } else if (State->Compressed == BI_RGB) {