1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 13:09:15 +00:00

Cleanup: Remove GetFontTable from FontCache. (#12677)

This interface is no longer used, so does not need to be implemented.

Removes manual memory management with malloc/free.
This commit is contained in:
2024-05-14 21:13:26 +01:00
committed by GitHub
parent ed67aedabf
commit 980dcaac6e
10 changed files with 0 additions and 78 deletions

View File

@@ -30,7 +30,6 @@ public:
uint GetGlyphWidth(GlyphID) override { return this->height / 2; }
bool GetDrawGlyphShadow() override { return false; }
GlyphID MapCharToGlyph(char32_t key, [[maybe_unused]] bool allow_fallback = true) override { return key; }
const void *GetFontTable(uint32_t, size_t &length) override { length = 0; return nullptr; }
std::string GetFontName() override { return "mock"; }
bool IsBuiltInFont() override { return true; }