diff options
author | scottmg <scottmg@chromium.org> | 2014-11-20 11:34:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-20 19:35:01 +0000 |
commit | 4d3559a728b974d256073f9f3e3b06e185c4a00f (patch) | |
tree | 943aa870ca36a4610e52ade5040d1eda883ef59e /tools/gn/operators.cc | |
parent | 512e25f331e03b33c60d9e9ec6fcb9f42761985e (diff) | |
download | chromium_src-4d3559a728b974d256073f9f3e3b06e185c4a00f.zip chromium_src-4d3559a728b974d256073f9f3e3b06e185c4a00f.tar.gz chromium_src-4d3559a728b974d256073f9f3e3b06e185c4a00f.tar.bz2 |
gn: delete some dead code
Unused.
R=brettw@chromium.org
Review URL: https://codereview.chromium.org/740863003
Cr-Commit-Position: refs/heads/master@{#305060}
Diffstat (limited to 'tools/gn/operators.cc')
-rw-r--r-- | tools/gn/operators.cc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tools/gn/operators.cc b/tools/gn/operators.cc index 78ea31b..17e31a7 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, |