diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-19 04:05:34 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-19 04:05:34 +0800 |
commit | 5bb4bfb08b7157ef79aaa673881638c809adf6a7 (patch) | |
tree | d67ac448801508e568b166f7b531fc8c157e1a85 /libsolidity/interface/Natspec.cpp | |
parent | 01fbc636239f78134b37f9dedeacf40455ee2e0c (diff) | |
download | dexon-solidity-5bb4bfb08b7157ef79aaa673881638c809adf6a7.tar.gz dexon-solidity-5bb4bfb08b7157ef79aaa673881638c809adf6a7.tar.zst dexon-solidity-5bb4bfb08b7157ef79aaa673881638c809adf6a7.zip |
Remove unneccesary interface from Natspec
Diffstat (limited to 'libsolidity/interface/Natspec.cpp')
-rw-r--r-- | libsolidity/interface/Natspec.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libsolidity/interface/Natspec.cpp b/libsolidity/interface/Natspec.cpp index 70486e23..7f7084ef 100644 --- a/libsolidity/interface/Natspec.cpp +++ b/libsolidity/interface/Natspec.cpp @@ -26,28 +26,11 @@ #include <libsolidity/interface/Natspec.h> #include <boost/range/irange.hpp> #include <libsolidity/ast/AST.h> -#include <libsolidity/interface/CompilerStack.h> using namespace std; using namespace dev; using namespace dev::solidity; -Json::Value Natspec::documentation( - ContractDefinition const& _contractDef, - DocumentationType _type -) -{ - switch(_type) - { - case DocumentationType::NatspecUser: - return userDocumentation(_contractDef); - case DocumentationType::NatspecDev: - return devDocumentation(_contractDef); - } - - BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown documentation type")); -} - Json::Value Natspec::userDocumentation(ContractDefinition const& _contractDef) { Json::Value doc; |