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

Unified Diff: tools/gn/string_utils.h

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
« no previous file with comments | « no previous file | tools/gn/string_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/string_utils.h
diff --git a/tools/gn/string_utils.h b/tools/gn/string_utils.h
index a405cc5e0199c0a2f2c578da0d763a657760c868..07be4c856e4708cda02b6a7fd5aa466f0dc3a03d 100644
--- a/tools/gn/string_utils.h
+++ b/tools/gn/string_utils.h
@@ -35,22 +35,4 @@ bool ExpandStringLiteral(Scope* scope,
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);
tfarina 2015/12/01 19:53:44 I found this because I was interested on RemovePre
-
-// 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_
« no previous file with comments | « no previous file | tools/gn/string_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698