aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/Natspec.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-19 04:05:34 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-19 04:05:34 +0800
commit5bb4bfb08b7157ef79aaa673881638c809adf6a7 (patch)
treed67ac448801508e568b166f7b531fc8c157e1a85 /libsolidity/interface/Natspec.cpp
parent01fbc636239f78134b37f9dedeacf40455ee2e0c (diff)
downloaddexon-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.cpp17
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;