From baf4d6a68a031bf65e17ccd5dac15fe7d0df33b6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 23 Jan 2019 20:36:07 +0100 Subject: [PATCH] [AAT] Remove mark_set from InsertionChain --- src/hb-aat-layout-morx-table.hh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 8d927e24a..a301fd3fc 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -714,7 +714,6 @@ struct InsertionSubtable hb_aat_apply_context_t *c_) : ret (false), c (c_), - mark_set (false), mark (0), insertionAction (table+table->insertionAction) {} @@ -730,7 +729,7 @@ struct InsertionSubtable hb_buffer_t *buffer = driver->buffer; unsigned int flags = entry->flags; - if (entry->data.markedInsertIndex != 0xFFFF && mark_set) + if (entry->data.markedInsertIndex != 0xFFFF) { unsigned int count = (flags & MarkedInsertCount); unsigned int start = entry->data.markedInsertIndex; @@ -793,10 +792,7 @@ struct InsertionSubtable } if (flags & SetMark) - { - mark_set = true; mark = buffer->out_len; - } return true; } @@ -805,7 +801,6 @@ struct InsertionSubtable bool ret; private: hb_aat_apply_context_t *c; - bool mark_set; unsigned int mark; const UnsizedArrayOf &insertionAction; };