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

Unified Diff: tools/gn/string_utils.cc

Issue 1483343004: tools/gn: remove three unused functions from string_utils.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« tools/gn/string_utils.h ('K') | « tools/gn/string_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/string_utils.cc
diff --git a/tools/gn/string_utils.cc b/tools/gn/string_utils.cc
index 6d3f87774a04be5d3ff4b6aa46f651e84da92409..496970bcc00819c9c4da77f381d28259d967107c 100644
--- a/tools/gn/string_utils.cc
+++ b/tools/gn/string_utils.cc
@@ -242,16 +242,3 @@ bool ExpandStringLiteral(Scope* scope,
}
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);
- }
-}
« tools/gn/string_utils.h ('K') | « tools/gn/string_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698