Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Unified Diff: net/tools/balsa/string_piece_utils.h

Issue 2477703002: Remove now unused Balsa code. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/balsa/simple_buffer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/balsa/string_piece_utils.h
diff --git a/net/tools/balsa/string_piece_utils.h b/net/tools/balsa/string_piece_utils.h
deleted file mode 100644
index 69877646ee55a7e0165d071248ec92cf96f471b1..0000000000000000000000000000000000000000
--- a/net/tools/balsa/string_piece_utils.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2013 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 NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_
-#define NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_
-
-#include <stddef.h>
-
-#include "base/strings/string_piece.h"
-#include "base/strings/string_util.h"
-
-namespace net {
-
-struct StringPieceCaseHash {
- size_t operator()(const base::StringPiece& sp) const {
- // based on __stl_string_hash in http://www.sgi.com/tech/stl/string
- size_t hash_val = 0;
- for (base::StringPiece::const_iterator it = sp.begin();
- it != sp.end(); ++it) {
- hash_val = 5 * hash_val + base::ToLowerASCII(*it);
- }
- return hash_val;
- }
-};
-
-struct StringPieceCaseEqual {
- bool operator()(const base::StringPiece& piece1,
- const base::StringPiece& piece2) const {
- return base::EqualsCaseInsensitiveASCII(piece1, piece2);
- }
-};
-
-} // namespace net
-
-#endif // NET_TOOLS_BALSA_STRING_PIECE_UTILS_H_
-
« no previous file with comments | « net/tools/balsa/simple_buffer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698