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

Unified Diff: components/subresource_filter/core/common/fuzzy_pattern_matching.cc

Issue 2153743002: Save failure function to FlatBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add newline. Created 4 years, 5 months 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
Index: components/subresource_filter/core/common/fuzzy_pattern_matching.cc
diff --git a/components/subresource_filter/core/common/fuzzy_pattern_matching.cc b/components/subresource_filter/core/common/fuzzy_pattern_matching.cc
index a0f47bc73de7dc54d3932221d14dae464cf7e9d1..d3cf29ff2c4e99a82b6444378516f499d68a37e6 100644
--- a/components/subresource_filter/core/common/fuzzy_pattern_matching.cc
+++ b/components/subresource_filter/core/common/fuzzy_pattern_matching.cc
@@ -24,11 +24,6 @@ bool StartsWithFuzzyImpl(base::StringPiece text, base::StringPiece subpattern) {
} // namespace
-void BuildFailureFunctionFuzzy(base::StringPiece subpattern,
- std::vector<size_t>* failure) {
- BuildFailureFunction<IsEqualOrBothSeparators>(subpattern, failure);
-}
-
bool StartsWithFuzzy(base::StringPiece text, base::StringPiece subpattern) {
if (subpattern.size() <= text.size())
return StartsWithFuzzyImpl(text, subpattern);

Powered by Google App Engine
This is Rietveld 408576698