OpenTTD / OpenTTD

OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
https://www.openttd.org/
Other
6.06k stars 842 forks source link

Cleanup: Remove GetFontTable from FontCache. #12677

Closed PeterN closed 1 month ago

PeterN commented 1 month ago

Motivation / Problem

While cleaning up GetFontTable (it uses malloc, and passes length as return parameter) I then noticed that it is actually never called.

Presumably the code that used it no longer does.

Description

Remove GetFontTable from FontCache.

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

Removes manual memory management with malloc/free.

Limitations

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.