mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
remove some dead code
This commit is contained in:
Vendored
-9
@@ -3221,14 +3221,6 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
void rehash_and_grow_if_necessary() {
|
||||
for (auto& inner : sets_)
|
||||
{
|
||||
MutexLock_ m(&inner);
|
||||
inner.set_.rehash_and_grow_if_necessary();
|
||||
}
|
||||
}
|
||||
|
||||
bool has_element(const value_type& elem) const {
|
||||
size_t hash = PolicyTraits::apply(HashElement{hash_ref()}, elem);
|
||||
Inner& inner = sets_[subidx(hash)];
|
||||
@@ -4059,7 +4051,6 @@ struct HashEq<T*>
|
||||
template <class U>
|
||||
size_t operator()(const U& ptr) const {
|
||||
return phmap::Hash<const T*>{}(HashEq::ToPtr(ptr));
|
||||
//return std::hash<const T*>{}(HashEq::ToPtr(ptr));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Vendored
+1
-2
@@ -460,8 +460,7 @@ namespace type_traits_internal {
|
||||
struct IsHashable : std::false_type {};
|
||||
|
||||
template <typename Key>
|
||||
struct IsHashable<
|
||||
Key,
|
||||
struct IsHashable<Key,
|
||||
phmap::enable_if_t<std::is_convertible<
|
||||
decltype(std::declval<std::hash<Key>&>()(std::declval<Key const&>())),
|
||||
std::size_t>::value>> : std::true_type {};
|
||||
|
||||
Reference in New Issue
Block a user