tools/gn: remove three unused functions from string_utils.h

git grep shows these functions have no callers anymore.

BUG=None
TEST=gn gen + gn_unittests
R=scottmg@chromium.org

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

Cr-Original-Commit-Position: refs/heads/master@{#362516}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0814cd9120dc3b96cc99a430188f4e3c0d2e2201
diff --git a/tools/gn/string_utils.cc b/tools/gn/string_utils.cc
index 6d3f877..496970b 100644
--- a/tools/gn/string_utils.cc
+++ b/tools/gn/string_utils.cc
@@ -242,16 +242,3 @@
   }
   return true;
 }
-
-std::string RemovePrefix(const std::string& str, const std::string& prefix) {
-  CHECK(str.size() >= prefix.size() &&
-        str.compare(0, prefix.size(), prefix) == 0);
-  return str.substr(prefix.size());
-}
-
-void TrimTrailingSlash(std::string* str) {
-  if (!str->empty()) {
-    DCHECK((*str)[str->size() - 1] == '/');
-    str->resize(str->size() - 1);
-  }
-}
diff --git a/tools/gn/string_utils.h b/tools/gn/string_utils.h
index a405cc5..07be4c8 100644
--- a/tools/gn/string_utils.h
+++ b/tools/gn/string_utils.h
@@ -35,22 +35,4 @@
                          Value* result,
                          Err* err);
 
-// Removes the given prefix from the string. Asserts if the string does
-// not have the given prefix.
-//
-// Note: could potentially return a StringPiece into the str.
-std::string RemovePrefix(const std::string& str, const std::string& prefix);
-
-// Appends the given string piece to the given string. This avoids an
-// intermediate copy.
-inline void AppendStringPiece(std::string* dest,
-                              const base::StringPiece& piece) {
-  dest->append(piece.data(), piece.size());
-}
-
-// Removes the trailing slash from the given string. This asserts that either
-// the string is empty or it ends with a slash (normally used to process
-// directories).
-void TrimTrailingSlash(std::string* str);
-
 #endif  // TOOLS_GN_STRING_UTILS_H_