diff --git a/Source/engine/render/text_render.cpp b/Source/engine/render/text_render.cpp index 0ac200d57..38d51297d 100644 --- a/Source/engine/render/text_render.cpp +++ b/Source/engine/render/text_render.cpp @@ -195,15 +195,6 @@ void InitText() } } -void FreeText() -{ - fonts[GameFontSmall] = std::nullopt; - fonts[GameFontMed] = std::nullopt; - fonts[GameFontBig] = std::nullopt; - - pSPentSpn2Cels = std::nullopt; -} - int GetLineWidth(const char *text, GameFontTables size, int spacing, int *charactersInLine) { int lineWidth = 0; diff --git a/Source/engine/render/text_render.hpp b/Source/engine/render/text_render.hpp index 5396c235e..5d10f2b3f 100644 --- a/Source/engine/render/text_render.hpp +++ b/Source/engine/render/text_render.hpp @@ -24,7 +24,6 @@ enum GameFontTables : uint8_t { extern std::optional pSPentSpn2Cels; void InitText(); -void FreeText(); /** * @brief Calculate pixel width of first line of text, respecting kerning