aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorChristian Parpart <christian@ethereum.org>2018-08-07 00:03:17 +0800
committerChristian Parpart <christian@ethereum.org>2018-08-07 17:34:13 +0800
commit4c90ddf64ad22e2cae51d67269df3e326dbf4cb8 (patch)
tree085039db4f4d10bab3cdac193010a5a3a2884055 /libsolidity/ast
parentd33e5683f51dc9d85b4493abbf6f03f6ab7b8ff2 (diff)
downloaddexon-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.cpp5
-rw-r--r--libsolidity/ast/AST.h1
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; }