Skip to content

Commit

Permalink
[util] Simplify copy_buffer_properties()
Browse files Browse the repository at this point in the history
Now that hb_buffer_append() overlays segment_properties we can do this.

Part of harfbuzz#1555
  • Loading branch information
behdad authored and Matthias Clasen committed Jan 7, 2022
1 parent 1998723 commit 4d585b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions util/shape-options.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 4d585b8

Please sign in to comment.