From e037325efbfca23739e2b3265261c2528f52bae1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 2 Jun 2022 08:51:12 -0600 Subject: [PATCH] [hash] Remove custom hash, rely on std::hash --- src/hb-algs.hh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index c5fa0bcbc..903815647 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -245,14 +245,6 @@ struct template constexpr auto impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash>{} (hb_deref (v))) - template ::value)> constexpr uint32_t - impl (const T& v, hb_priority<0>) const - { - /* Knuth's multiplicative method: */ - return (uint32_t) v * 2654435761u; - } - template constexpr uint32_t impl (const hb::shared_ptr& v, hb_priority<0>) const {