Remove QuicheMakeUnique. This platformized function was added as a first step of the future transition of merging http2, spdy, and quic platforms, but has never been used, and never will be with the recent removal of Http2MakeUnique, SpdyMakeUnique, and QuicMakeUnique. PiperOrigin-RevId: 278622060 Change-Id: I2b210643cb0f111663b2de27e4e99c50600de539
diff --git a/common/platform/api/quiche_ptr_util.h b/common/platform/api/quiche_ptr_util.h deleted file mode 100644 index 26b152b..0000000 --- a/common/platform/api/quiche_ptr_util.h +++ /dev/null
@@ -1,21 +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_PTR_UTIL_H_ -#define QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_ - -#include <memory> - -#include "net/quiche/common/platform/impl/quiche_ptr_util_impl.h" - -namespace quiche { - -template <typename T, typename... Args> -std::unique_ptr<T> QuicheMakeUnique(Args&&... args) { - return QuicheMakeUniqueImpl<T>(std::forward<Args>(args)...); -} - -} // namespace quiche - -#endif // QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_
diff --git a/common/simple_linked_hash_map_test.cc b/common/simple_linked_hash_map_test.cc index 0ea7d8a..cb45a0f 100644 --- a/common/simple_linked_hash_map_test.cc +++ b/common/simple_linked_hash_map_test.cc
@@ -9,7 +9,6 @@ #include <memory> #include <utility> -#include "net/third_party/quiche/src/common/platform/api/quiche_ptr_util.h" #include "net/third_party/quiche/src/common/platform/api/quiche_test.h" using testing::Pair; @@ -23,8 +22,8 @@ TEST(LinkedHashMapTest, Move) { // Use unique_ptr as an example of a non-copyable type. SimpleLinkedHashMap<int, std::unique_ptr<int>> m; - m[2] = QuicheMakeUnique<int>(12); - m[3] = QuicheMakeUnique<int>(13); + m[2] = std::make_unique<int>(12); + m[3] = std::make_unique<int>(13); SimpleLinkedHashMap<int, std::unique_ptr<int>> n = std::move(m); EXPECT_THAT(n, UnorderedElementsAre(Pair(2, Pointee(12)), Pair(3, Pointee(13))));