Remove dead code, FreeText() is never called

Given the program already lets the destructors get called naturally there's no need to explicitly call this function. Even if it was desirable to re-init the font data the old instances will be destroyed when the new instance is assigned to the optional.
This commit is contained in:
ephphatha 2021-06-19 14:08:31 +10:00 committed by Anders Jenbo
commit b478d8295c
2 changed files with 0 additions and 10 deletions

View file

@ -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;