Remove dynamic exceptions
[anna.git] / source / diameter / helpers / ericsson / functions.cpp
index 97cc551..363d445 100644 (file)
@@ -25,7 +25,7 @@ using namespace anna::diameter::helpers::ericsson;
 
 
 // getters
-std::string anna::diameter::helpers::ericsson::functions::getSCAPSubscriptionIdData(const anna::DataBlock & db, int scapSubscriptionIdType) throw(anna::RuntimeException) {
+std::string anna::diameter::helpers::ericsson::functions::getSCAPSubscriptionIdData(const anna::DataBlock & db, int scapSubscriptionIdType) noexcept(false) {
   if(db.getSize() < Message::HeaderLength)
     throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION);
 
@@ -37,7 +37,6 @@ std::string anna::diameter::helpers::ericsson::functions::getSCAPSubscriptionIdD
   int pos = 1; // first avp
   const char * subscriptionIdPtr;
   const char * subscriptionIdDataPtr;
-  int type;
   // Decoded avp information:
   AvpId _id;
   char _flags;