[buffer] Remove unnecessary have_separate_output()

This commit is contained in:
Behdad Esfahbod 2021-07-12 17:35:45 -06:00
parent 3e266e5f64
commit 95b04f7409
2 changed files with 1 additions and 6 deletions

View File

@ -189,9 +189,6 @@ struct hb_buffer_t
hb_glyph_info_t &prev () { return out_info[out_len ? out_len - 1 : 0]; } hb_glyph_info_t &prev () { return out_info[out_len ? out_len - 1 : 0]; }
hb_glyph_info_t prev () const { return out_info[out_len ? out_len - 1 : 0]; } hb_glyph_info_t prev () const { return out_info[out_len ? out_len - 1 : 0]; }
HB_NODISCARD bool has_separate_output () const { return info != out_info; }
HB_INTERNAL void reset (); HB_INTERNAL void reset ();
HB_INTERNAL void clear (); HB_INTERNAL void clear ();

View File

@ -1894,8 +1894,6 @@ apply_string (OT::hb_ot_apply_context_t *c,
if (!Proxy::inplace) if (!Proxy::inplace)
buffer->swap_buffers (); buffer->swap_buffers ();
else
assert (!buffer->has_separate_output ());
} }
else else
{ {