From 8561fd0b269fbc7f7b60f807e93eb1f9a58c25fa Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 27 Aug 2011 15:27:56 -0500 Subject: [PATCH] [FontManager] ReloadFonts() was only used in ScreenTestFonts, which is gone now. --- src/FontManager.cpp | 9 --------- src/FontManager.h | 7 ------- 2 files changed, 16 deletions(-) diff --git a/src/FontManager.cpp b/src/FontManager.cpp index 4929faaacf..42b56ad5ea 100644 --- a/src/FontManager.cpp +++ b/src/FontManager.cpp @@ -29,15 +29,6 @@ FontManager::~FontManager() } } -void FontManager::ReloadFonts() -{ - for(map::iterator i = g_mapPathToFont.begin(); - i != g_mapPathToFont.end(); ++i) - { - i->second->Reload(); - } -} - Font* FontManager::LoadFont( const RString &sFontOrTextureFilePath, RString sChars ) { Font *pFont; diff --git a/src/FontManager.h b/src/FontManager.h index 5fcdbcfe40..75655628da 100644 --- a/src/FontManager.h +++ b/src/FontManager.h @@ -16,13 +16,6 @@ public: Font *CopyFont( Font *pFont ); void UnloadFont( Font *fp ); //void PruneFonts(); - - /* Warning: This reloads fonts completely, so all BitmapTexts need to be - * reset, too. If this isn't done, best case they end up with old font - * metrics; worst case, they get left with stale pointers to RageTextures - * that'll get freed eventually and crash. This is only used for realtime - * adjustment of fonts in ScreenTestFonts at the moment. */ - void ReloadFonts(); }; extern FontManager* FONT; // global and accessable from anywhere in our program