[hash] Remove custom hash, rely on std::hash

This commit is contained in:
Behdad Esfahbod 2022-06-02 08:51:12 -06:00
parent 0d3d5b62ae
commit e037325efb
1 changed files with 0 additions and 8 deletions

View File

@ -245,14 +245,6 @@ struct
template <typename T> constexpr auto
impl (const T& v, hb_priority<1>) const HB_RETURN (uint32_t, std::hash<hb_decay<decltype (hb_deref (v))>>{} (hb_deref (v)))
template <typename T,
hb_enable_if (std::is_integral<T>::value)> constexpr uint32_t
impl (const T& v, hb_priority<0>) const
{
/* Knuth's multiplicative method: */
return (uint32_t) v * 2654435761u;
}
template <typename T> constexpr uint32_t
impl (const hb::shared_ptr<T>& v, hb_priority<0>) const
{