From 55d6d58d9f7a7d2ed03aa84ca9ba80c41ea246c7 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Fri, 6 Nov 2020 06:20:24 +0900 Subject: [PATCH] mail_daemon/inbound_protocols/imap: Fix dynamic exception specifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove dynamic exception specifications from Responce.c, since Protocol::HandleResponse() handled exception handling for ResponseParser::NextResponse() and Response::Parse(). Change-Id: I32e5cf976de765df2c8b5ca99eeaa80c57dbf254 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3384 Reviewed-by: Axel Dörfler --- .../inbound_protocols/imap/imap_lib/Response.cpp | 2 -- .../mail_daemon/inbound_protocols/imap/imap_lib/Response.h | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.cpp b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.cpp index 1458badaa9..3d5eb7e8c1 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.cpp +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.cpp @@ -451,7 +451,6 @@ Response::~Response() void Response::Parse(BDataIO& stream, LiteralHandler* handler) - throw(ParseException, StreamException) { MakeEmpty(); fLiteralHandler = handler; @@ -763,7 +762,6 @@ ResponseParser::SetLiteralHandler(LiteralHandler* handler) status_t ResponseParser::NextResponse(Response& response, bigtime_t timeout) - throw(ParseException, StreamException) { response.Parse(*fStream, fLiteralHandler); return B_OK; diff --git a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.h b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.h index 28305d9b70..fbfe2f98b2 100644 --- a/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.h +++ b/src/add-ons/mail_daemon/inbound_protocols/imap/imap_lib/Response.h @@ -144,8 +144,7 @@ public: Response(); ~Response(); - void Parse(BDataIO& stream, LiteralHandler* handler) - throw(ParseException, StreamException); + void Parse(BDataIO& stream, LiteralHandler* handler); bool IsUntagged() const { return fTag == 0; } uint32 Tag() const { return fTag; } @@ -194,8 +193,7 @@ public: void SetLiteralHandler(LiteralHandler* handler); status_t NextResponse(Response& response, - bigtime_t timeout) - throw(ParseException, StreamException); + bigtime_t timeout); private: ResponseParser(const ResponseParser& other);