removed redundant code that did nothing, caused a compiler warning and is

2002-11-04  Sven Neumann  <sven@gimp.org>

	* io-bmp.c (DecodeHeader): removed redundant code that did nothing,
	caused a compiler warning and is also not in the HEAD branch.
This commit is contained in:
Sven Neumann
2002-11-04 11:08:23 +00:00
committed by Sven Neumann
parent ff92fd244a
commit 981f7c3269
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2002-11-04 Sven Neumann <sven@gimp.org>
* 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 <maclas@gmx.de>
* io-gif.c (lzw_read_byte): Check for stack overflow throughout.

View File

@@ -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) {