From 3aad7c2ddffc3f882bf33504dbac31be491c4d72 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 17 Nov 2022 15:10:47 -0700 Subject: [PATCH] [algs] Remove smart-pointers from hb_hash() hb_deref() handles them. I think this code predated that. --- src/hb-algs.hh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/hb-algs.hh b/src/hb-algs.hh index cc37c073d..fe94ee357 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -236,17 +236,6 @@ struct template constexpr auto impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, hb_deref (v).hash ()) - template constexpr uint32_t - impl (const hb::shared_ptr& v, hb_priority<1>) const - { - return v.get () ? v.get ()->hash () : 0; - } - template constexpr uint32_t - impl (const hb::unique_ptr& v, hb_priority<1>) const - { - return v.get () ? v.get ()->hash () : 0; - } - template constexpr auto impl (const T& v, hb_priority<0>) const HB_RETURN (uint32_t, std::hash>{} (hb_deref (v)))