From b075256d8dcdd00874edb599a060e8658153faa0 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 21 Nov 2013 23:07:50 +0100 Subject: Do not throw exception for normal code flow. --- src/exception.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/exception.cpp') diff --git a/src/exception.cpp b/src/exception.cpp index bf37de00..3ea6e25a 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -428,20 +428,6 @@ exception* unsupported_option::clone() const { return new unsupported_option(*th const char* unsupported_option::name() const throw() { return "unsupported_option"; } -// -// no_service_available -// - -no_service_available::~no_service_available() throw() {} -no_service_available::no_service_available(const string& proto, const exception& other) - : net_exception(proto.empty() - ? "No service available for this protocol." - : "No service available for this protocol: '" + proto + "'.", other) {} - -exception* no_service_available::clone() const { return new no_service_available(*this); } -const char* no_service_available::name() const throw() { return "no_service_available"; } - - // // illegal_state // -- cgit v1.2.3