Bug 800502 - Signaling - Removed unused code that required XML handling r=jesup
authorEthan Hugg <ethanhugg@gmail.com>
Thu, 11 Oct 2012 14:07:50 -0700
changeset 110182 7cb0e7444c5507051fa1ff9b55b43483939fba85
parent 110181 e866bc56a3576ec4702ffc7a4ee13cf6adae9a86
child 110183 c153fd060cef5062a1ee47a4b79657546d389d37
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersjesup
bugs800502
milestone19.0a1
Bug 800502 - Signaling - Removed unused code that required XML handling r=jesup
media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_subsmanager.c
--- a/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_subsmanager.c
+++ b/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_subsmanager.c
@@ -1498,21 +1498,26 @@ parse_body (cc_subscriptions_t event_typ
     }
 
     return SIP_OK;
 }
 
 boolean
 add_content (ccsip_event_data_t *eventData, sipMessage_t *request, const char *fname)
 {
+    return FALSE;
+
+/* This function requires XML handling */
+#if 0 
     const char     *fname1 = "add_content";
     uint32_t        len;
     char           *eventBody = NULL;
 
     while (eventData) {
+        /* Encode eventData into eventBody here */
         len = strlen(eventBody);
 
         switch (eventData->type) {
         case EVENT_DATA_RAW:
             // Assume body is of type CMXML for now
             (void) sippmh_add_message_body(request, eventBody, len,
                                            SIP_CONTENT_TYPE_CMXML,
                                            SIP_CONTENT_DISPOSITION_SESSION_VALUE, TRUE, NULL);
@@ -1531,16 +1536,17 @@ add_content (ccsip_event_data_t *eventDa
             CCSIP_DEBUG_ERROR(SIP_F_PREFIX"%s: Data type not supported\n", fname1, fname);
             cpr_free(eventBody);
             break;
         }
 
         eventData = eventData->next;
     }
     return (TRUE);
+#endif
 }
 
 // Functions to handle requests from internal applications
 
 /************************************************************
  * Applications Register to Receive an incoming subscribe(s)
  ************************************************************/
 int