aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-02-09 09:24:57 +0800
committerLiana Husikyan <liana@ethdev.com>2015-02-09 09:24:57 +0800
commitbcccfa8805dfe471b2e3711a23dcb2e0caf7e7bb (patch)
tree39f17e092b886ea6428c89431b0b06e317c758a8 /AST.cpp
parent2a5c2578bd7e07326412ac0345ed5f5283908ccb (diff)
downloaddexon-solidity-bcccfa8805dfe471b2e3711a23dcb2e0caf7e7bb.tar.gz
dexon-solidity-bcccfa8805dfe471b2e3711a23dcb2e0caf7e7bb.tar.zst
dexon-solidity-bcccfa8805dfe471b2e3711a23dcb2e0caf7e7bb.zip
- removed unnesessary braces but one in if statement is still there because of warrning about ambiguous "else"
- added marking of position in node factory to the function Conflicts: libsolidity/Parser.cpp
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/AST.cpp b/AST.cpp
index dbc32664..79d724fc 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -60,7 +60,6 @@ void ContractDefinition::checkTypeRequirements()
FunctionDefinition const* fallbackFunction = nullptr;
for (ASTPointer<FunctionDefinition> const& function: getDefinedFunctions())
- {
if (function->getName().empty())
{
if (fallbackFunction)
@@ -72,8 +71,6 @@ void ContractDefinition::checkTypeRequirements()
BOOST_THROW_EXCEPTION(fallbackFunction->getParameterList().createTypeError("Fallback function cannot take parameters."));
}
}
- }
-
for (ASTPointer<ModifierDefinition> const& modifier: getFunctionModifiers())
modifier->checkTypeRequirements();