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

Unified Diff: third_party/libphonenumber/cpp/src/stl_util.h

Issue 8736001: Pull the phone library directly. Delete old version. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « third_party/libphonenumber/cpp/src/run_tests.cc ('k') | third_party/libphonenumber/cpp/src/stringutil.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libphonenumber/cpp/src/stl_util.h
===================================================================
--- third_party/libphonenumber/cpp/src/stl_util.h (revision 111991)
+++ third_party/libphonenumber/cpp/src/stl_util.h (working copy)
@@ -1,42 +0,0 @@
-// Copyright (C) 2011 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#ifndef I18N_PHONENUMBERS_STL_UTIL_H_
-#define I18N_PHONENUMBERS_STL_UTIL_H_
-
-namespace i18n {
-namespace phonenumbers {
-
-// Compares the first attribute of two pairs.
-struct OrderByFirst {
- template <typename T>
- bool operator()(const T& p1, const T& p2) const {
- return p1.first < p2.first;
- }
-};
-
-// Deletes the second attribute (pointer type expected) of the pairs contained
-// in the provided range.
-template <typename ForwardIterator>
-void STLDeleteContainerPairSecondPointers(const ForwardIterator& begin,
- const ForwardIterator& end) {
- for (ForwardIterator it = begin; it != end; ++it) {
- delete it->second;
- }
-}
-
-} // namespace phonenumbers
-} // namespace i18n
-
-#endif // I18N_PHONENUMBERS_STL_UTIL_H_
« no previous file with comments | « third_party/libphonenumber/cpp/src/run_tests.cc ('k') | third_party/libphonenumber/cpp/src/stringutil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698