From 09e821619e20943af7bbd61ad10fb5ae40d2558c Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 13 Jul 2017 11:33:06 +0200 Subject: Refactor exceptions and provide comment function. --- libsolidity/interface/Exceptions.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'libsolidity/interface') 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(*this); - int const* line = boost::get_error_info(*this); - string ret; - if (file) - ret += *file; - ret += ':'; - if (line) - ret += boost::lexical_cast(*line); - return ret; -} -- cgit