diff options
author | chriseth <chris@ethereum.org> | 2018-08-07 22:14:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 22:14:41 +0800 |
commit | a949cffd248cf83a6afa4d5a45376d65b720ba52 (patch) | |
tree | fa970d3140edd27b5d0a1ba32a22c32df375986e /libsolidity/ast | |
parent | c61cc98d0da59155edc72a947dd8867b69cba20e (diff) | |
parent | 4c90ddf64ad22e2cae51d67269df3e326dbf4cb8 (diff) | |
download | dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.tar dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.tar.gz dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.tar.bz2 dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.tar.lz dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.tar.xz dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.tar.zst dexon-solidity-a949cffd248cf83a6afa4d5a45376d65b720ba52.zip |
Merge pull request #4699 from ethereum/cleanup_VariableDeclaration
libsolidity: Remove dead code wrt. VariableDeclaration::canHaveAutoType
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/AST.cpp | 5 | ||||
-rw-r--r-- | libsolidity/ast/AST.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 7c3869a8..23797d52 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -466,11 +466,6 @@ bool VariableDeclaration::isExternalCallableParameter() const return false; } -bool VariableDeclaration::canHaveAutoType() const -{ - return isLocalVariable() && !isCallableParameter(); -} - TypePointer VariableDeclaration::type() const { return annotation().type; diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index d0d3b1ef..69c6fa05 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -696,7 +696,6 @@ public: bool isExternalCallableParameter() const; /// @returns true if the type of the variable does not need to be specified, i.e. it is declared /// in the body of a function or modifier. - bool canHaveAutoType() const; bool isStateVariable() const { return m_isStateVariable; } bool isIndexed() const { return m_isIndexed; } bool isConstant() const { return m_isConstant; } |