From 190d4073c1c2345cc96cece3099a5e58b434ebb7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 18:45:25 +0300 Subject: fix compilation varnings --- src/gui/sdlfont.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index 5e859be53..749a36b4e 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -31,7 +31,7 @@ #include "resources/image.h" #include "resources/imagehelper.h" -#include "resources/resourcemanager.h" +//#include "resources/resourcemanager.h" #include "resources/surfaceimagehelper.h" #include "utils/paths.h" @@ -344,8 +344,6 @@ SDLFont::SDLFont(std::string filename, mDeleteCounter(0), mCleanTime(cur_time + CLEAN_TIME) { - const ResourceManager *const resman = ResourceManager::getInstance(); - if (fontCounter == 0) { mSoftMode = imageHelper->useOpenGL() == RENDER_SOFTWARE; @@ -399,7 +397,6 @@ SDLFont::~SDLFont() TTF_Font *SDLFont::openFont(const char *const name, const int size) { logger->log("font to open: %s", name); - ResourceManager *const resman = ResourceManager::getInstance(); SDL_RWops *const rw = MPHYSFSRWOPS_openRead(name); if (!rw) return nullptr; @@ -410,8 +407,6 @@ void SDLFont::loadFont(std::string filename, const int size, const int style) { - const ResourceManager *const resman = ResourceManager::getInstance(); - if (fontCounter == 0 && TTF_Init() == -1) { logger->log("Unable to initialize SDL_ttf: " + -- cgit v1.2.3-70-g09d2