Remove outdated versions of StartsWith and EndsWith from string_util.cc

It seems that old versions of StartsWith and EndsWith are unused
and can be removed completely.

R=brettw
BUG=none

Review URL: https://codereview.chromium.org/1278973004

Cr-Commit-Position: refs/heads/master@{#342838}


CrOS-Libchrome-Original-Commit: df3bc178a2487a0c2ad4c5b06934f11f155eb441
diff --git a/base/strings/string_util.cc b/base/strings/string_util.cc
index 19c38d5..a389dc3 100644
--- a/base/strings/string_util.cc
+++ b/base/strings/string_util.cc
@@ -625,23 +625,6 @@
   return StartsWithT<string16>(str, search_for, case_sensitivity);
 }
 
-bool StartsWith(const string16& str,
-                const string16& search,
-                bool case_sensitive) {
-  if (!case_sensitive) {
-    // This function was originally written using the current locale functions
-    // for case-insensitive comparisons. Emulate this behavior until callers
-    // can be converted either to use the case-insensitive ASCII one (most
-    // callers) or ICU functions in base_i18n.
-    if (search.size() > str.size())
-      return false;
-    return std::equal(search.begin(), search.end(), str.begin(),
-                      CaseInsensitiveCompareDeprecated());
-  }
-  return StartsWith(StringPiece16(str), StringPiece16(search),
-                    CompareCase::SENSITIVE);
-}
-
 template <typename Str>
 bool EndsWithT(BasicStringPiece<Str> str,
                BasicStringPiece<Str> search_for,
@@ -676,28 +659,10 @@
 
 bool EndsWith(StringPiece16 str,
               StringPiece16 search_for,
-                          CompareCase case_sensitivity) {
+              CompareCase case_sensitivity) {
   return EndsWithT<string16>(str, search_for, case_sensitivity);
 }
 
-bool EndsWith(const string16& str,
-              const string16& search,
-              bool case_sensitive) {
-  if (!case_sensitive) {
-    // This function was originally written using the current locale functions
-    // for case-insensitive comparisons. Emulate this behavior until callers
-    // can be converted either to use the case-insensitive ASCII one (most
-    // callers) or ICU functions in base_i18n.
-    if (search.size() > str.size())
-      return false;
-    return std::equal(search.begin(), search.end(),
-                      str.begin() + (str.size() - search.size()),
-                      CaseInsensitiveCompareDeprecated());
-  }
-  return EndsWith(StringPiece16(str), StringPiece16(search),
-                  CompareCase::SENSITIVE);
-}
-
 char HexDigitToInt(wchar_t c) {
   DCHECK(IsHexDigit(c));
   if (c >= '0' && c <= '9')