mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 09:34:05 +01:00
[aat] Remove an unused parameter
This commit is contained in:
1 parent
1a2780735c
commit
d9058c64e0
3 files changed
+4
-10
No files matched your search
@@ -939,7 +939,7 @@ struct StateTableDriver
|
||||
bool is_idempotent_on_all_out_of_bounds (context_t *c, hb_aat_apply_context_t *ac)
|
||||
{
|
||||
const auto entry = machine.get_entry (StateTableT::STATE_START_OF_TEXT, CLASS_OUT_OF_BOUNDS);
|
||||
return !c->is_actionable (ac->buffer, this, entry) &&
|
||||
return !c->is_actionable (ac->buffer, entry) &&
|
||||
machine.new_state (entry.newState) == StateTableT::STATE_START_OF_TEXT;
|
||||
}
|
||||
|
||||
@@ -1021,7 +1021,7 @@ struct StateTableDriver
|
||||
bool is_safe_to_break =
|
||||
(
|
||||
/* 1. */
|
||||
!c->is_actionable (buffer, this, entry) &&
|
||||
!c->is_actionable (buffer, entry) &&
|
||||
|
||||
/* 2. */
|
||||
// This one is meh, I know...
|
||||
@@ -1033,7 +1033,7 @@ struct StateTableDriver
|
||||
wouldbe_entry = &machine.get_entry(StateTableT::STATE_START_OF_TEXT, klass)
|
||||
,
|
||||
/* 2c'. */
|
||||
!c->is_actionable (buffer, this, *wouldbe_entry) &&
|
||||
!c->is_actionable (buffer, *wouldbe_entry) &&
|
||||
/* 2c". */
|
||||
(
|
||||
next_state == machine.new_state(wouldbe_entry->newState) &&
|
||||
@@ -1043,7 +1043,7 @@ struct StateTableDriver
|
||||
) &&
|
||||
|
||||
/* 3. */
|
||||
!c->is_actionable (buffer, this, machine.get_entry (state, CLASS_END_OF_TEXT))
|
||||
!c->is_actionable (buffer, machine.get_entry (state, CLASS_END_OF_TEXT))
|
||||
);
|
||||
|
||||
if (!is_safe_to_break && buffer->backtrack_len () && buffer->idx < buffer->len)
|
||||
|
||||
@@ -243,7 +243,6 @@ struct KerxSubTableFormat1
|
||||
crossStream (table->header.coverage & table->header.CrossStream) {}
|
||||
|
||||
bool is_actionable (hb_buffer_t *buffer HB_UNUSED,
|
||||
StateTableDriver<Types, EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> &entry)
|
||||
{ return Format1EntryT::performAction (entry); }
|
||||
void transition (hb_buffer_t *buffer,
|
||||
@@ -529,7 +528,6 @@ struct KerxSubTableFormat4
|
||||
mark (0) {}
|
||||
|
||||
bool is_actionable (hb_buffer_t *buffer HB_UNUSED,
|
||||
StateTableDriver<Types, EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> &entry)
|
||||
{ return entry.data.ankrActionIndex != 0xFFFF; }
|
||||
void transition (hb_buffer_t *buffer,
|
||||
|
||||
@@ -75,7 +75,6 @@ struct RearrangementSubtable
|
||||
start (0), end (0) {}
|
||||
|
||||
bool is_actionable (hb_buffer_t *buffer HB_UNUSED,
|
||||
StateTableDriver<Types, EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> &entry) const
|
||||
{
|
||||
return (entry.flags & Verb) && start < end;
|
||||
@@ -233,7 +232,6 @@ struct ContextualSubtable
|
||||
subs (table+table->substitutionTables) {}
|
||||
|
||||
bool is_actionable (hb_buffer_t *buffer,
|
||||
StateTableDriver<Types, EntryData> *driver,
|
||||
const Entry<EntryData> &entry) const
|
||||
{
|
||||
if (buffer->idx == buffer->len && !mark_set)
|
||||
@@ -485,7 +483,6 @@ struct LigatureSubtable
|
||||
match_length (0) {}
|
||||
|
||||
bool is_actionable (hb_buffer_t *buffer HB_UNUSED,
|
||||
StateTableDriver<Types, EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> &entry) const
|
||||
{
|
||||
return LigatureEntryT::performAction (entry);
|
||||
@@ -795,7 +792,6 @@ struct InsertionSubtable
|
||||
insertionAction (table+table->insertionAction) {}
|
||||
|
||||
bool is_actionable (hb_buffer_t *buffer HB_UNUSED,
|
||||
StateTableDriver<Types, EntryData> *driver HB_UNUSED,
|
||||
const Entry<EntryData> &entry) const
|
||||
{
|
||||
return (entry.flags & (CurrentInsertCount | MarkedInsertCount)) &&
|
||||
|
||||
Reference in new issue
Block a user