diff options
author | Thomas Petillon <tpetillon@gmail.com> | 2023-09-19 17:01:04 +0200 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2023-09-20 14:36:50 -0600 |
commit | da2c59d71f687c38a29389d81d6d6f911994c403 (patch) | |
tree | 802af4825997860fa88019c620831321b945fd69 | |
parent | 284889b0317c317ae00fe1a6e32db1f9213cb5e2 (diff) | |
download | harfbuzz_ng-da2c59d71f687c38a29389d81d6d6f911994c403.tar.gz |
[instancer] Delete redundant code block in cvar subsetting
That case is handled in hb-subset.cc.
It also made compilation with HB_NO_VAR fail because it accessed table.fvar.
-rw-r--r-- | src/hb-ot-var-cvar-table.hh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/hb-ot-var-cvar-table.hh b/src/hb-ot-var-cvar-table.hh index adb81769b..0814940aa 100644 --- a/src/hb-ot-var-cvar-table.hh +++ b/src/hb-ot-var-cvar-table.hh @@ -143,19 +143,6 @@ struct cvar if (c->plan->all_axes_pinned) return_trace (false); - /* subset() for cvar is called by partial instancing only, we always pass - * through cvar table in other cases */ - if (!c->plan->normalized_coords) - { - unsigned axis_count = c->plan->source->table.fvar->get_axis_count (); - unsigned total_size = min_size + tupleVariationData.get_size (axis_count); - char *out = c->serializer->allocate_size<char> (total_size); - if (unlikely (!out)) return_trace (false); - - hb_memcpy (out, this, total_size); - return_trace (true); - } - OT::TupleVariationData::tuple_variations_t tuple_variations; unsigned axis_count = c->plan->axes_old_index_tag_map.get_population (); |