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:
parent
c3eed43012
commit
b478d8295c
2 changed files with 0 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue