From 1902f6ccbb90fea33da74973657e6ecfec7a6c99 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 23 Jun 2023 13:21:21 -0600 Subject: [PATCH] [map] Inline an accessor function --- src/hb-map.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index 6cdd8b878..f4eede75d 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -80,7 +80,6 @@ struct hb_hashmap_t bool is_used () const { return is_used_; } void set_used (bool is_used) { is_used_ = is_used; } - bool is_tombstone () const { return !is_real_; } void set_real (bool is_real) { is_real_ = is_real; } bool is_real () const { return is_real_; } @@ -236,7 +235,7 @@ struct hb_hashmap_t else break; } - if (items[i].is_tombstone () && tombstone == (unsigned) -1) + if (!items[i].is_real () && tombstone == (unsigned) -1) tombstone = i; i = (i + ++step) & mask; length++;