From 34f5b855aa39cc5ac59fb7cd3e9e3a48507e1a08 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 3 Jan 2022 11:25:06 -0700 Subject: [PATCH] [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 --- util/shape-options.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/util/shape-options.hh b/util/shape-options.hh index a1491429e..e6e709239 100644 --- a/util/shape-options.hh +++ b/util/shape-options.hh @@ -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)); }