[util] Simplify copy_buffer_properties()

Now that hb_buffer_append() overlays segment_properties we can do this.

Part of https://github.com/harfbuzz/harfbuzz/issues/1555
This commit is contained in:
Behdad Esfahbod 2022-01-03 11:25:06 -07:00
parent 101d07efd9
commit 34f5b855aa
1 changed files with 0 additions and 3 deletions

View File

@ -62,9 +62,6 @@ struct shape_options_t
static void copy_buffer_properties (hb_buffer_t *dst, hb_buffer_t *src)
{
hb_segment_properties_t props;
hb_buffer_get_segment_properties (src, &props);
hb_buffer_set_segment_properties (dst, &props);
hb_buffer_set_flags (dst, hb_buffer_get_flags (src));
hb_buffer_set_cluster_level (dst, hb_buffer_get_cluster_level (src));
}