From 2f512e54cdee4c1d15f632fcab64d3850004028b Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 6 Aug 2016 23:12:34 +0200 Subject: [PATCH] Remove unused code --- src/textures/pngtexture.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/textures/pngtexture.cpp b/src/textures/pngtexture.cpp index 31d76f5674..9a64bac616 100644 --- a/src/textures/pngtexture.cpp +++ b/src/textures/pngtexture.cpp @@ -41,7 +41,6 @@ #include "bitmap.h" #include "v_palette.h" #include "textures/textures.h" -#include //========================================================================== // @@ -74,7 +73,6 @@ protected: bool HaveTrans; WORD NonPaletteTrans[3]; - std::vector PngPalette; BYTE *PaletteMap; int PaletteSize; DWORD StartOfIDAT; @@ -268,12 +266,6 @@ FPNGTexture::FPNGTexture (FileReader &lump, int lumpnum, const FString &filename { lump.Seek (len - PaletteSize * 3, SEEK_CUR); } - for (i = 0; i < PaletteSize; i++) - { - PngPalette.push_back(p.pngpal[i][0]); - PngPalette.push_back(p.pngpal[i][1]); - PngPalette.push_back(p.pngpal[i][2]); - } for (i = PaletteSize - 1; i >= 0; --i) { p.palette[i] = MAKERGB(p.pngpal[i][0], p.pngpal[i][1], p.pngpal[i][2]);