From f3a89322713a379678abc420d75230a9b17aa18f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Jun 2013 21:29:51 +0300 Subject: fix code style. --- src/resources/sdlimagehelper.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/resources') diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 881368fd3..337d1cb53 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -137,10 +137,7 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, return nullptr; Image *img; - bool hasAlpha = false; - const bool converted = false; - const int sz = tmpImage->w * tmpImage->h; // The alpha channel to be filled with alpha values @@ -195,9 +192,6 @@ Image *SDLImageHelper::createTextSurface(SDL_Surface *const tmpImage, return nullptr; } - if (converted) - SDL_FreeSurface(tmpImage); - img = new Image(image, hasAlpha, alphaChannel); img->mAlpha = alpha; return img; -- cgit v1.2.3-70-g09d2