Revert "[map] Add hb_map_filter_invalid"
This reverts commit 8d7e921117
.
Surprisingly this slowed NotoNastaliqUrdu benchmark down by a couple
percent instead of speeding it up.
This commit is contained in:
parent
8d7e921117
commit
dbbb8e8006
|
@ -147,8 +147,8 @@ struct Coverage
|
|||
TRACE_SUBSET (this);
|
||||
auto it =
|
||||
+ iter ()
|
||||
| hb_filter (c->plan->glyph_map_gsub)
|
||||
| hb_map_retains_sorting (c->plan->glyph_map_gsub)
|
||||
| hb_filter (hb_map_filter_invalid)
|
||||
;
|
||||
|
||||
// Cache the iterator result as it will be iterated multiple times
|
||||
|
|
|
@ -451,8 +451,6 @@ struct hb_map_t : hb_hashmap_t<hb_codepoint_t,
|
|||
hb_map_t (const Iterable &o) : hashmap (o) {}
|
||||
};
|
||||
|
||||
static inline bool hb_map_filter_invalid (hb_codepoint_t _) { return _ != HB_MAP_VALUE_INVALID; }
|
||||
|
||||
template <typename K, typename V>
|
||||
static inline
|
||||
hb_hashmap_t<K, V>* hb_hashmap_create ()
|
||||
|
|
Loading…
Reference in New Issue