[cache] Remove empty fini()

This commit is contained in:
Behdad Esfahbod 2023-01-28 13:22:52 -07:00
parent 115d572571
commit 1b53ed3c41
3 changed files with 0 additions and 6 deletions

View File

@ -51,7 +51,6 @@ struct hb_cache_t
hb_cache_t () { init (); }
void init () { clear (); }
void fini () {}
void clear ()
{

View File

@ -129,8 +129,6 @@ _hb_ft_font_destroy (void *data)
{
hb_ft_font_t *ft_font = (hb_ft_font_t *) data;
ft_font->advance_cache.fini ();
if (ft_font->unref)
_hb_ft_face_destroy (ft_font->ft_face);

View File

@ -90,10 +90,7 @@ _hb_ot_font_destroy (void *font_data)
auto *cache = ot_font->advance_cache.get_relaxed ();
if (cache)
{
cache->fini ();
hb_free (cache);
}
hb_free (ot_font);
}