Replace QuicheUnorderedMap with absl::node_hash_map. PiperOrigin-RevId: 355704903 Change-Id: I0fcc20b247d31949c7b21a2690da9eaaafbeac71
diff --git a/common/platform/api/quiche_unordered_containers.h b/common/platform/api/quiche_unordered_containers.h deleted file mode 100644 index a53a206..0000000 --- a/common/platform/api/quiche_unordered_containers.h +++ /dev/null
@@ -1,27 +0,0 @@ -// Copyright (c) 2019 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef QUICHE_COMMON_PLATFORM_API_QUICHE_UNORDERED_CONTAINERS_H_ -#define QUICHE_COMMON_PLATFORM_API_QUICHE_UNORDERED_CONTAINERS_H_ - -#include <functional> - -#include "net/quiche/common/platform/impl/quiche_unordered_containers_impl.h" - -namespace quiche { - -// The default hasher used by hash tables. -template <typename Key> -using QuicheDefaultHasher = QuicheDefaultHasherImpl<Key>; - -// A general-purpose unordered map. -template <typename Key, - typename Value, - typename Hash = QuicheDefaultHasher<Key>, - typename Eq = std::equal_to<Key>> -using QuicheUnorderedMap = QuicheUnorderedMapImpl<Key, Value, Hash, Eq>; - -} // namespace quiche - -#endif // QUICHE_COMMON_PLATFORM_API_QUICHE_UNORDERED_CONTAINERS_H_
diff --git a/common/simple_linked_hash_map.h b/common/simple_linked_hash_map.h index 48da55b..17542a1 100644 --- a/common/simple_linked_hash_map.h +++ b/common/simple_linked_hash_map.h
@@ -22,8 +22,8 @@ #include <type_traits> #include <utility> +#include "absl/container/node_hash_map.h" #include "common/platform/api/quiche_logging.h" -#include "common/platform/api/quiche_unordered_containers.h" namespace quiche { @@ -41,7 +41,7 @@ class SimpleLinkedHashMap { private: typedef std::list<std::pair<Key, Value>> ListType; - typedef QuicheUnorderedMap<Key, typename ListType::iterator, Hash, Eq> + typedef absl::node_hash_map<Key, typename ListType::iterator, Hash, Eq> MapType; public: