Remove unused vars from Graphics/GraphicsResources

These unused vars are:
 - Graphics::bfontmask_rect
 - Graphics::backgrounds
 - Graphics::bfontmask
 - GraphicsResources::im_bfontmask

While it seems that Graphics::backgrounds was indexed in
Graphics::drawbackground(), in reality there was never anything in that
vector and thus actually using it would cause a segfault.
This commit is contained in:
Misa
2020-07-03 02:20:07 -07:00
committed by Ethan Lee
parent adca6a122a
commit 4c6ab6e6b7
4 changed files with 0 additions and 9 deletions

View File

@@ -89,7 +89,6 @@ void GraphicsResources::init(void)
im_sprites = LoadImage("graphics/sprites.png");
im_flipsprites = LoadImage("graphics/flipsprites.png");
im_bfont = LoadImage("graphics/font.png");
im_bfontmask = LoadImage("graphics/fontmask.png");
im_teleporter = LoadImage("graphics/teleporter.png");
im_image0 = LoadImage("graphics/levelcomplete.png", false);
@@ -117,7 +116,6 @@ void GraphicsResources::destroy(void)
SDL_FreeSurface(im_sprites);
SDL_FreeSurface(im_flipsprites);
SDL_FreeSurface(im_bfont);
SDL_FreeSurface(im_bfontmask);
SDL_FreeSurface(im_teleporter);
SDL_FreeSurface(im_image0);