[algs] Remove smart-pointers from hb_hash()
hb_deref() handles them. I think this code predated that.
This commit is contained in:
parent
7bd101728a
commit
3aad7c2ddf
|
@ -236,17 +236,6 @@ struct
|
||||||
template <typename T> constexpr auto
|
template <typename T> constexpr auto
|
||||||
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, hb_deref (v).hash ())
|
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, hb_deref (v).hash ())
|
||||||
|
|
||||||
template <typename T> constexpr uint32_t
|
|
||||||
impl (const hb::shared_ptr<T>& v, hb_priority<1>) const
|
|
||||||
{
|
|
||||||
return v.get () ? v.get ()->hash () : 0;
|
|
||||||
}
|
|
||||||
template <typename T> constexpr uint32_t
|
|
||||||
impl (const hb::unique_ptr<T>& v, hb_priority<1>) const
|
|
||||||
{
|
|
||||||
return v.get () ? v.get ()->hash () : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename T> constexpr auto
|
template <typename T> constexpr auto
|
||||||
impl (const T& v, hb_priority<0>) const HB_RETURN (uint32_t, std::hash<hb_decay<decltype (hb_deref (v))>>{} (hb_deref (v)))
|
impl (const T& v, hb_priority<0>) const HB_RETURN (uint32_t, std::hash<hb_decay<decltype (hb_deref (v))>>{} (hb_deref (v)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue