diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-11-24 23:45:17 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-11-24 23:45:17 +0800 |
commit | 384c4546f172f8a0615036be9555774de6592fbc (patch) | |
tree | 5cdd0cd2378cd318e2a0cff3524b12229ff8d315 /libsolidity/interface/Exceptions.cpp | |
parent | 2faaddca05549ecf3e716ec83faeffde6e8d4c2f (diff) | |
download | dexon-solidity-384c4546f172f8a0615036be9555774de6592fbc.tar.gz dexon-solidity-384c4546f172f8a0615036be9555774de6592fbc.tar.zst dexon-solidity-384c4546f172f8a0615036be9555774de6592fbc.zip |
interface: move searchForSubstring out of Error class into a separate file
Diffstat (limited to 'libsolidity/interface/Exceptions.cpp')
-rw-r--r-- | libsolidity/interface/Exceptions.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libsolidity/interface/Exceptions.cpp b/libsolidity/interface/Exceptions.cpp index f4ce8bc8..90a680b4 100644 --- a/libsolidity/interface/Exceptions.cpp +++ b/libsolidity/interface/Exceptions.cpp @@ -56,10 +56,3 @@ Error::Error(Type _type): m_type(_type) break; } } - -bool Error::searchForSubstring(const std::string& _substr) const -{ - if (const std::string* str = boost::get_error_info<errinfo_comment>(*this)) - return str->find(_substr) != std::string::npos; - return _substr.empty(); -} |