PSP: Remove dead code

This commit is contained in:
Colin Snover 2017-10-28 15:26:04 -05:00 committed by Eugene Sandulenko
parent 042650157a
commit 334e0e7463

View File

@ -220,10 +220,6 @@ inline void Cursor::adjustXYForScreenSize(int32 &x, int32 &y) {
void Cursor::setScreenPaletteScummvmPixelFormat(const Graphics::PixelFormat *format) {
DEBUG_ENTER_FUNC();
uint32 oldPaletteSize = 0;
if (_screenPalette.isAllocated())
oldPaletteSize = _screenPalette.getSizeInBytes();
PSPPixelFormat::Type bufferType = PSPPixelFormat::Type_Unknown;
PSPPixelFormat::Type paletteType = PSPPixelFormat::Type_Unknown;
bool swapRedBlue = false;
@ -247,14 +243,11 @@ void Cursor::setSizeAndScummvmPixelFormat(uint32 width, uint32 height, const Gra
PSP_DEBUG_PRINT("useCursorPalette[%s]\n", _useCursorPalette ? "true" : "false");
uint32 oldBufferSize = 0, oldPaletteSize = 0;
uint32 oldBufferSize = 0;
if (_buffer.isAllocated())
oldBufferSize = _buffer.getSizeInBytes();
if (_palette.isAllocated())
oldPaletteSize = _palette.getSizeInBytes();
setSize(width, height);
PSPPixelFormat::Type bufferType = PSPPixelFormat::Type_Unknown;