From 905e250baf982aa5b81265d8f88ec022ef8666ce Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Fri, 22 Sep 2017 07:52:28 +0200 Subject: C++ API: remove deprecated throw lists Change-Id: Ia58664438c9dc949884a794bd123555a13a02e6c Signed-off-by: Klement Sekera --- src/vpp-api/vapi/vapi.hpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/vpp-api/vapi/vapi.hpp b/src/vpp-api/vapi/vapi.hpp index 3be78b41b0a..a3ac2ce7103 100644 --- a/src/vpp-api/vapi/vapi.hpp +++ b/src/vpp-api/vapi/vapi.hpp @@ -587,8 +587,7 @@ private: return &my_id; } - Msg (Connection &con, void *shm_data) throw (Msg_not_available_exception) - : con{con} + Msg (Connection &con, void *shm_data) : con{con} { if (!con.is_msg_available (get_msg_id ())) { @@ -599,8 +598,7 @@ private: this, shm_data); } - void assign_response (vapi_msg_id_t resp_id, - void *shm_data) throw (Unexpected_msg_id_exception) + void assign_response (vapi_msg_id_t resp_id, void *shm_data) { assert (nullptr == this->shm_data); if (resp_id != get_msg_id ()) @@ -745,8 +743,7 @@ private: complete = true; } - void assign_response (vapi_msg_id_t resp_id, - void *shm_data) throw (Unexpected_msg_id_exception) + void assign_response (vapi_msg_id_t resp_id, void *shm_data) { if (resp_id != Msg::get_msg_id ()) { @@ -852,8 +849,7 @@ template class Event_registration : public Common_req public: Event_registration ( Connection &con, - std::function &)> callback = - nullptr) throw (Msg_not_available_exception) + std::function &)> callback = nullptr) : Common_req{con}, result_set{con}, callback{callback} { if (!con.is_msg_available (M::get_msg_id ())) -- cgit 1.2.3-korg