diff options
author | Christian Parpart <christian@ethereum.org> | 2018-08-07 00:03:17 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-08-07 17:34:13 +0800 |
commit | 4c90ddf64ad22e2cae51d67269df3e326dbf4cb8 (patch) | |
tree | 085039db4f4d10bab3cdac193010a5a3a2884055 /libsolidity/ast | |
parent | d33e5683f51dc9d85b4493abbf6f03f6ab7b8ff2 (diff) | |
download | dexon-solidity-4c90ddf64ad22e2cae51d67269df3e326dbf4cb8.tar.gz dexon-solidity-4c90ddf64ad22e2cae51d67269df3e326dbf4cb8.tar.zst dexon-solidity-4c90ddf64ad22e2cae51d67269df3e326dbf4cb8.zip |
libsolidity: Remove dead code wrt. VariableDeclaration::canHaveAutoType()
Closes #4667
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; } |