diff options
author | chriseth <chris@ethereum.org> | 2017-08-29 22:29:28 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-09-06 19:50:49 +0800 |
commit | eacee5b25c1edbcf3e32128bd28bce5e58fc2a74 (patch) | |
tree | b7e1511398461b404e589997b4558396d24a5a1d /libsolidity | |
parent | 50047bf82c00952942b0a47826b6bf08490b76e3 (diff) | |
download | dexon-solidity-eacee5b25c1edbcf3e32128bd28bce5e58fc2a74.tar.gz dexon-solidity-eacee5b25c1edbcf3e32128bd28bce5e58fc2a74.tar.zst dexon-solidity-eacee5b25c1edbcf3e32128bd28bce5e58fc2a74.zip |
Remove previous warning about pureness not being enforced.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/StaticAnalyzer.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.cpp b/libsolidity/analysis/StaticAnalyzer.cpp index 2f130414..ab1cbb52 100644 --- a/libsolidity/analysis/StaticAnalyzer.cpp +++ b/libsolidity/analysis/StaticAnalyzer.cpp @@ -57,8 +57,6 @@ bool StaticAnalyzer::visit(FunctionDefinition const& _function) solAssert(m_localVarUseCount.empty(), ""); m_nonPayablePublic = _function.isPublic() && !_function.isPayable(); m_constructor = _function.isConstructor(); - if (_function.stateMutability() == StateMutability::Pure) - m_errorReporter.warning(_function.location(), "Function is marked pure. Be careful, pureness is not enforced yet."); return true; } |