aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-13 17:33:06 +0800
committerchriseth <chris@ethereum.org>2017-07-13 17:34:03 +0800
commit09e821619e20943af7bbd61ad10fb5ae40d2558c (patch)
treeaf7152e9af75b84573668424f7eee1a915a7c263 /libsolidity/interface
parent757c500bda9a32cccc86e1ab24da31a99c0e6eac (diff)
downloaddexon-solidity-09e821619e20943af7bbd61ad10fb5ae40d2558c.tar.gz
dexon-solidity-09e821619e20943af7bbd61ad10fb5ae40d2558c.tar.zst
dexon-solidity-09e821619e20943af7bbd61ad10fb5ae40d2558c.zip
Refactor exceptions and provide comment function.
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/Exceptions.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/libsolidity/interface/Exceptions.cpp b/libsolidity/interface/Exceptions.cpp
index 9f2a2d06..a837dce6 100644
--- a/libsolidity/interface/Exceptions.cpp
+++ b/libsolidity/interface/Exceptions.cpp
@@ -67,16 +67,3 @@ Error::Error(Error::Type _type, const std::string& _description, const SourceLoc
*this << errinfo_sourceLocation(_location);
*this << errinfo_comment(_description);
}
-
-string Exception::lineInfo() const
-{
- char const* const* file = boost::get_error_info<boost::throw_file>(*this);
- int const* line = boost::get_error_info<boost::throw_line>(*this);
- string ret;
- if (file)
- ret += *file;
- ret += ':';
- if (line)
- ret += boost::lexical_cast<string>(*line);
- return ret;
-}