diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-25 22:37:10 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-25 22:37:10 +0800 |
commit | d60d4b3031001a188b2449c97e2d617d98c77f0e (patch) | |
tree | ede2e8e5d179aec5d7582d335273d0bc5fb1892f /libsolidity/interface/CompilerStack.cpp | |
parent | 92ef30b7480d2fc0035aff232b558bb6d7419cc0 (diff) | |
download | dexon-solidity-d60d4b3031001a188b2449c97e2d617d98c77f0e.tar.gz dexon-solidity-d60d4b3031001a188b2449c97e2d617d98c77f0e.tar.zst dexon-solidity-d60d4b3031001a188b2449c97e2d617d98c77f0e.zip |
Remove duplicate work from CompilerStack.analyze()
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 363f45dd..5837c642 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -201,8 +201,6 @@ bool CompilerStack::analyze() for (ASTPointer<ASTNode> const& node: source->ast->nodes()) if (ContractDefinition* contract = dynamic_cast<ContractDefinition*>(node.get())) { - m_globalContext->setCurrentContract(*contract); - resolver.updateDeclaration(*m_globalContext->currentThis()); TypeChecker typeChecker(m_errorReporter); if (typeChecker.checkTypeRequirements(*contract)) { @@ -211,14 +209,6 @@ bool CompilerStack::analyze() } else noErrors = false; - - // Note that we now reference contracts by their fully qualified names, and - // thus contracts can only conflict if declared in the same source file. This - // already causes a double-declaration error elsewhere, so we do not report - // an error here and instead silently drop any additional contracts we find. - - if (m_contracts.find(contract->fullyQualifiedName()) == m_contracts.end()) - m_contracts[contract->fullyQualifiedName()].contract = contract; } if (noErrors) |