Browse code

core: removed orphan code (B2B SDP parsing)

Stefan Sayer authored on 19/02/2014 17:51:19
Showing 1 changed files
... ...
@@ -306,42 +306,6 @@ void AmB2BSession::onB2BEvent(B2BEvent* ev)
306 306
   //ERROR("unknown event caught\n");
307 307
 }
308 308
 
309
-static bool parseSdp(AmSdp &dst, const AmMimeBody *body)
310
-{
311
-  if (body) {
312
-    int res = dst.parse((const char *)body->getPayload());
313
-    if (res != 0) {
314
-      DBG("SDP parsing failed (%d)!\n", res);
315
-      return false;
316
-    }
317
-    return true;
318
-  }
319
-  return false;
320
-}
321
-
322
-static bool parseSdp(AmSdp &dst, const AmSipRequest &req)
323
-{
324
-  if (req.method == SIP_METH_INVITE || 
325
-      req.method == SIP_METH_UPDATE ||
326
-      req.method == SIP_METH_ACK || 
327
-      req.method == SIP_METH_PRACK) 
328
-  {
329
-    return parseSdp(dst, req.body.hasContentType(SIP_APPLICATION_SDP));
330
-  }
331
-  return false;
332
-}
333
-
334
-static bool parseSdp(AmSdp &dst, const AmSipReply &reply)
335
-{
336
-  if (reply.cseq_method == SIP_METH_INVITE || 
337
-      reply.cseq_method == SIP_METH_UPDATE ||
338
-      reply.cseq_method == SIP_METH_PRACK) 
339
-  {
340
-    return parseSdp(dst, reply.body.hasContentType(SIP_APPLICATION_SDP));
341
-  }
342
-  return false;
343
-}
344
-
345 309
 bool AmB2BSession::getMappedReferID(unsigned int refer_id, 
346 310
 				    unsigned int& mapped_id) const
347 311
 {