From f7466ee76f2bd3812209426e2c39fe517227406d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 17 Apr 2013 18:20:44 -0400 Subject: [PATCH] Remove hb_set_digest_common_bits_t Was unused. --- src/hb-set-private.hh | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index 8128a69e3..c6099cc3a 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -40,44 +40,6 @@ * queries. As a result, our filters have much higher. */ -struct hb_set_digest_common_bits_t -{ - ASSERT_POD (); - - typedef unsigned int mask_t; - - inline void init (void) { - mask = ~0; - value = (mask_t) -1; - } - - inline void add (hb_codepoint_t g) { - if (unlikely (value == (mask_t) -1)) { - value = g; - return; - } - - mask ^= (g & mask) ^ value; - value &= mask; - } - - inline void add_range (hb_codepoint_t a, hb_codepoint_t b) { - add (a); - /* The negation here stands for ~(x-1). */ - mask_t upper_bits = -(1 << _hb_bit_storage (a ^ b)); - mask &= upper_bits; - value &= upper_bits; - } - - inline bool may_have (hb_codepoint_t g) const { - return (g & mask) == value; - } - - private: - mask_t mask; - mask_t value; -}; - template struct hb_set_digest_lowest_bits_t {