Replace QuicheContainsKey with a direct call to find()

PiperOrigin-RevId: 332015920
Change-Id: I4567cfcf31b2b0b49abe49b122f4593821d50a47
diff --git a/common/platform/api/quiche_map_util.h b/common/platform/api/quiche_map_util.h
deleted file mode 100644
index b539466..0000000
--- a/common/platform/api/quiche_map_util.h
+++ /dev/null
@@ -1,19 +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_MAP_UTIL_H_
-#define QUICHE_COMMON_PLATFORM_API_QUICHE_MAP_UTIL_H_
-
-#include "net/quiche/common/platform/impl/quiche_map_util_impl.h"
-
-namespace quiche {
-
-template <class Collection, class Key>
-bool QuicheContainsKey(const Collection& collection, const Key& key) {
-  return QuicheContainsKeyImpl(collection, key);
-}
-
-}  // namespace quiche
-
-#endif  // QUICHE_COMMON_PLATFORM_API_QUICHE_MAP_UTIL_H_
diff --git a/spdy/core/http2_priority_write_scheduler.h b/spdy/core/http2_priority_write_scheduler.h
index a50745f..a58e224 100644
--- a/spdy/core/http2_priority_write_scheduler.h
+++ b/spdy/core/http2_priority_write_scheduler.h
@@ -17,7 +17,6 @@
 #include <utility>
 #include <vector>
 
-#include "net/third_party/quiche/src/common/platform/api/quiche_map_util.h"
 #include "net/third_party/quiche/src/common/platform/api/quiche_str_cat.h"
 #include "net/third_party/quiche/src/spdy/core/spdy_intrusive_list.h"
 #include "net/third_party/quiche/src/spdy/core/spdy_protocol.h"
@@ -211,7 +210,7 @@
 template <typename StreamIdType>
 bool Http2PriorityWriteScheduler<StreamIdType>::StreamRegistered(
     StreamIdType stream_id) const {
-  return quiche::QuicheContainsKey(all_stream_infos_, stream_id);
+  return all_stream_infos_.find(stream_id) != all_stream_infos_.end();
 }
 
 template <typename StreamIdType>