mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[aat] Remove now-unused code
This commit is contained in:
parent
44281b2856
commit
942a30b7df
2 changed files with 2 additions and 18 deletions
|
@ -88,7 +88,7 @@ struct hb_aat_apply_context_t :
|
|||
|
||||
void set_lookup_index (unsigned int i) { lookup_index = i; }
|
||||
|
||||
void setup_buffer_glyph_set (unsigned subchain_count)
|
||||
void setup_buffer_glyph_set ()
|
||||
{
|
||||
using_buffer_glyph_set = buffer->len >= 4;
|
||||
|
||||
|
|
|
@ -1374,13 +1374,11 @@ struct mortmorx
|
|||
}
|
||||
|
||||
this->chain_count = table->get_chain_count ();
|
||||
this->subchain_count = table->get_subchain_count ();
|
||||
|
||||
this->accels = (hb_atomic_ptr_t<hb_aat_layout_chain_accelerator_t> *) hb_calloc (this->chain_count, sizeof (*accels));
|
||||
if (unlikely (!this->accels))
|
||||
{
|
||||
this->chain_count = 0;
|
||||
this->subchain_count = 0;
|
||||
this->table.destroy ();
|
||||
this->table = hb_blob_get_empty ();
|
||||
}
|
||||
|
@ -1424,7 +1422,6 @@ struct mortmorx
|
|||
|
||||
hb_blob_ptr_t<T> table;
|
||||
unsigned int chain_count;
|
||||
unsigned int subchain_count;
|
||||
hb_atomic_ptr_t<hb_aat_layout_chain_accelerator_t> *accels;
|
||||
};
|
||||
|
||||
|
@ -1449,19 +1446,6 @@ struct mortmorx
|
|||
{
|
||||
return chainCount;
|
||||
}
|
||||
unsigned get_subchain_count () const
|
||||
{
|
||||
const Chain<Types> *chain = &firstChain;
|
||||
unsigned int count = chainCount;
|
||||
unsigned int subchain_count = 0;
|
||||
for (unsigned int i = 0; i < count; i++)
|
||||
{
|
||||
subchain_count += chain->get_subtable_count ();
|
||||
chain = &StructAfter<Chain<Types>> (*chain);
|
||||
}
|
||||
return subchain_count;
|
||||
}
|
||||
|
||||
void apply (hb_aat_apply_context_t *c,
|
||||
const hb_aat_map_t &map,
|
||||
const accelerator_t &accel) const
|
||||
|
@ -1470,7 +1454,7 @@ struct mortmorx
|
|||
|
||||
c->buffer->unsafe_to_concat ();
|
||||
|
||||
c->setup_buffer_glyph_set (accel.subchain_count);
|
||||
c->setup_buffer_glyph_set ();
|
||||
|
||||
c->set_lookup_index (0);
|
||||
const Chain<Types> *chain = &firstChain;
|
||||
|
|
Loading…
Add table
Reference in a new issue