From def78908846541460b9d0142a76bf58732326c99 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sat, 23 Nov 2013 09:43:35 +0100 Subject: Do not throw exception for normal code flow. Removed exceptions::no_such_address and exceptions::no_such_mailbox, using std::out_of_range instead. --- src/exception.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'src/exception.cpp') diff --git a/src/exception.cpp b/src/exception.cpp index e1f40ce4..45f672a3 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -178,18 +178,6 @@ exception* no_such_part::clone() const { return new no_such_part(*this); } const char* no_such_part::name() const throw() { return "no_such_part"; } -// -// no_such_mailbox -// - -no_such_mailbox::~no_such_mailbox() throw() {} -no_such_mailbox::no_such_mailbox(const exception& other) - : exception("Mailbox not found.", other) {} - -exception* no_such_mailbox::clone() const { return new no_such_mailbox(*this); } -const char* no_such_mailbox::name() const throw() { return "no_such_mailbox"; } - - // // no_such_message_id // @@ -202,18 +190,6 @@ exception* no_such_message_id::clone() const { return new no_such_message_id(*th const char* no_such_message_id::name() const throw() { return "no_such_message_id"; } -// -// no_such_address -// - -no_such_address::~no_such_address() throw() {} -no_such_address::no_such_address(const exception& other) - : exception("Address not found.", other) {} - -exception* no_such_address::clone() const { return new no_such_address(*this); } -const char* no_such_address::name() const throw() { return "no_such_address"; } - - // // open_file_error // -- cgit v1.2.3