Index: components/autofill/browser/autofill-inl.h |
diff --git a/components/autofill/browser/autofill-inl.h b/components/autofill/browser/autofill-inl.h |
deleted file mode 100644 |
index 0103c7c48e7c5f48e89054d3f1139c274fa727b4..0000000000000000000000000000000000000000 |
--- a/components/autofill/browser/autofill-inl.h |
+++ /dev/null |
@@ -1,39 +0,0 @@ |
-// Copyright (c) 2012 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_INL_H_ |
-#define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_INL_H_ |
- |
-namespace autofill { |
- |
-template<typename T> |
-class FormGroupMatchesByCompareFunctor { |
- public: |
- explicit FormGroupMatchesByCompareFunctor(const T& form_group) |
- : form_group_(form_group) { |
- } |
- |
- bool operator()(const T* form_group) { |
- return form_group->Compare(form_group_) == 0; |
- } |
- |
- bool operator()(const T& form_group) { |
- return form_group.Compare(form_group_) == 0; |
- } |
- |
- private: |
- const T& form_group_; |
-}; |
- |
-template<typename C, typename T> |
-bool FindByContents(const C& container, const T& form_group) { |
- return std::find_if( |
- container.begin(), |
- container.end(), |
- FormGroupMatchesByCompareFunctor<T>(form_group)) != container.end(); |
-} |
- |
-} // namespace autofill |
- |
-#endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_INL_H_ |