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

Unified Diff: tools/gn/operators.cc

Issue 740863003: gn: delete some dead code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-penalty-binop
Patch Set: Created 6 years, 1 month 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 | « tools/gn/operators.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/operators.cc
diff --git a/tools/gn/operators.cc b/tools/gn/operators.cc
index 78ea31b756af497f967bfd1f5eb57ab6b46fe8bc..17e31a728ab398556f09f89e9b82eee883fc9d13 100644
--- a/tools/gn/operators.cc
+++ b/tools/gn/operators.cc
@@ -491,42 +491,6 @@ Value ExecuteAnd(Scope* scope,
// ----------------------------------------------------------------------------
-bool IsUnaryOperator(const Token& token) {
- return token.type() == Token::BANG;
-}
-
-bool IsBinaryOperator(const Token& token) {
- return token.type() == Token::EQUAL ||
- token.type() == Token::PLUS ||
- token.type() == Token::MINUS ||
- token.type() == Token::PLUS_EQUALS ||
- token.type() == Token::MINUS_EQUALS ||
- token.type() == Token::EQUAL_EQUAL ||
- token.type() == Token::NOT_EQUAL ||
- token.type() == Token::LESS_EQUAL ||
- token.type() == Token::GREATER_EQUAL ||
- token.type() == Token::LESS_THAN ||
- token.type() == Token::GREATER_THAN ||
- token.type() == Token::BOOLEAN_AND ||
- token.type() == Token::BOOLEAN_OR;
-}
-
-bool IsFunctionCallArgBeginScoper(const Token& token) {
- return token.type() == Token::LEFT_PAREN;
-}
-
-bool IsFunctionCallArgEndScoper(const Token& token) {
- return token.type() == Token::RIGHT_PAREN;
-}
-
-bool IsScopeBeginScoper(const Token& token) {
- return token.type() == Token::LEFT_BRACE;
-}
-
-bool IsScopeEndScoper(const Token& token) {
- return token.type() == Token::RIGHT_BRACE;
-}
-
Value ExecuteUnaryOperator(Scope* scope,
const UnaryOpNode* op_node,
const Value& expr,
« no previous file with comments | « tools/gn/operators.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698