[hb-fc] Minor remove unused variable

This commit is contained in:
Behdad Esfahbod 2023-01-16 12:38:53 -07:00
parent e903397bc3
commit 8e8ca03b2a
1 changed files with 2 additions and 4 deletions

View File

@ -76,9 +76,7 @@ _hb_fc_get_font_funcs ()
{
static const hb_font_funcs_t *fc_ffuncs;
const hb_font_funcs_t *ffuncs;
if (!(ffuncs = fc_ffuncs))
if (!fc_ffuncs)
{
hb_font_funcs_t *newfuncs = hb_font_funcs_create ();
@ -88,7 +86,7 @@ _hb_fc_get_font_funcs ()
if (fc_ffuncs)
hb_font_funcs_destroy (newfuncs);
else
fc_ffuncs = ffuncs = newfuncs;
fc_ffuncs = newfuncs;
}
return const_cast<hb_font_funcs_t *> (fc_ffuncs);