Pārlūkot izejas kodu

ims_dialog: fix warning: ‘dlg_terminated_confirmed’ defined but not used [-Wunused-function]

Ovidiu Sas 8 gadi atpakaļ
vecāks
revīzija
96203c3a6a
1 mainītis faili ar 28 papildinājumiem un 28 dzēšanām
  1. 28 28
      src/modules/ims_dialog/dlg_handlers.c

+ 28 - 28
src/modules/ims_dialog/dlg_handlers.c

@@ -286,34 +286,34 @@ void dlg_iuid_sfree(void *iuid) {
     }
 }
 
-/*!
- * \brief Function that executes BYE reply callbacks
- * \param t transaction, unused
- * \param type type of the callback, should be TMCB_RESPONSE_FWDED
- * \param param saved dialog structure inside the callback
- */
-static void dlg_terminated_confirmed(struct cell* t,
-        int type,
-        struct tmcb_params* params) {
-    if (!params || !params->req || !params->param) {
-        LM_ERR("invalid parameters!\n");
-        return;
-    }
-
-    struct dlg_cell* dlg = (struct dlg_cell*) *params->param;
-
-    if (!dlg) {
-        LM_ERR("failed to get dialog from params!\n");
-        return;
-    }
-    /* dialog termination confirmed (BYE reply) */
-    run_dlg_callbacks(DLGCB_TERMINATED_CONFIRMED,
-            dlg,
-            params->req,
-            params->rpl,
-            DLG_DIR_UPSTREAM,
-            0);
-}
+///*!
+// * \brief Function that executes BYE reply callbacks
+// * \param t transaction, unused
+// * \param type type of the callback, should be TMCB_RESPONSE_FWDED
+// * \param param saved dialog structure inside the callback
+// */
+//static void dlg_terminated_confirmed(struct cell* t,
+//        int type,
+//        struct tmcb_params* params) {
+//    if (!params || !params->req || !params->param) {
+//        LM_ERR("invalid parameters!\n");
+//       return;
+//    }
+//
+//   struct dlg_cell* dlg = (struct dlg_cell*) *params->param;
+//
+//    if (!dlg) {
+//        LM_ERR("failed to get dialog from params!\n");
+//        return;
+//    }
+//    /* dialog termination confirmed (BYE reply) */
+//    run_dlg_callbacks(DLGCB_TERMINATED_CONFIRMED,
+//            dlg,
+//            params->req,
+//            params->rpl,
+//            DLG_DIR_UPSTREAM,
+//            0);
+//}
 
 static void dlg_cancel_confirmed(struct cell* t,
         int type,