[directwrite] Simplify

This commit is contained in:
Behdad Esfahbod 2022-06-28 13:47:49 -06:00
parent 33e3bf2d79
commit eaba5e74a9
1 changed files with 1 additions and 6 deletions

View File

@ -241,17 +241,12 @@ struct hb_directwrite_font_data_t {};
hb_directwrite_font_data_t *
_hb_directwrite_shaper_font_data_create (hb_font_t *font)
{
hb_directwrite_font_data_t *data = new hb_directwrite_font_data_t;
if (unlikely (!data))
return nullptr;
return data;
return (hb_directwrite_font_data_t *) HB_SHAPER_DATA_SUCCEEDED;
}
void
_hb_directwrite_shaper_font_data_destroy (hb_directwrite_font_data_t *data)
{
delete data;
}