From 2e25dfa251c409f6f456d6aff36acf7841360bfd Mon Sep 17 00:00:00 2001 From: emb <> Date: Thu, 1 Jan 2015 14:59:18 -0600 Subject: [PATCH] Removed debug code for font cache and text component. --- Source/Graphics/Component/Text.cpp | 6 ------ Source/Graphics/FontCache.cpp | 3 --- Source/Graphics/FontCache.h | 2 -- 3 files changed, 11 deletions(-) diff --git a/Source/Graphics/Component/Text.cpp b/Source/Graphics/Component/Text.cpp index e217295..c4b472d 100644 --- a/Source/Graphics/Component/Text.cpp +++ b/Source/Graphics/Component/Text.cpp @@ -84,12 +84,6 @@ void Text::Draw() rect.h = static_cast(h); rect.w = static_cast(w); rect.y = static_cast(yOrigin); - /* - std::stringstream ss; - ss << " cx:" << charRect.x << " cy:" << charRect.y << " cw:" << charRect.w << " ch:" << charRect.h; - ss << " x:" << rect.x << " y:" << rect.y << " w:" << rect.w << " h:" << rect.h; - Logger::Write(Logger::ZONE_DEBUG, "Text", ss.str()); - */ SDL_LockMutex(SDL::GetMutex()); SDL_SetTextureColorMod(t, FontColor.r, FontColor.g, FontColor.b); diff --git a/Source/Graphics/FontCache.cpp b/Source/Graphics/FontCache.cpp index ed4b360..e88d2a3 100644 --- a/Source/Graphics/FontCache.cpp +++ b/Source/Graphics/FontCache.cpp @@ -10,7 +10,6 @@ //todo: memory leak when launching games FontCache::FontCache() - : IsInitialized(false) { } @@ -21,7 +20,6 @@ FontCache::~FontCache() void FontCache::DeInitialize() { - IsInitialized = false; std::map::iterator it = FontFaceMap.begin(); while(it != FontFaceMap.end()) { @@ -40,7 +38,6 @@ void FontCache::Initialize() { //todo: make bool TTF_Init(); - IsInitialized = true; } Font *FontCache::GetFont(std::string fontPath) { diff --git a/Source/Graphics/FontCache.h b/Source/Graphics/FontCache.h index 4d724db..c2fe4db 100644 --- a/Source/Graphics/FontCache.h +++ b/Source/Graphics/FontCache.h @@ -18,8 +18,6 @@ public: virtual ~FontCache(); private: - bool IsInitialized; - std::map FontFaceMap; };