xcap_client: removed unused api function get_elem()
[sip-router] / src / modules / xcap_client / xcap_functions.c
index 1b2e6b4..6b875b1 100644 (file)
@@ -50,7 +50,6 @@ int bind_xcap(xcap_api_t* api)
                LM_ERR("Invalid parameter value\n");
                return -1;
        }
-       api->get_elem= xcapGetElem;
        api->int_node_sel= xcapInitNodeSel;
        api->add_step= xcapNodeSelAddStep;
        api->add_terminal= xcapNodeSelAddTerminal;
@@ -455,39 +454,6 @@ error:
        return NULL;
 }
 
-/* xcap_root must be a NULL terminated string */
-
-char* xcapGetElem(xcap_get_req_t req, char** etag)
-{
-       char* path= NULL;
-       char* stream= NULL;
-
-       path= get_xcap_path(req);
-       if(path== NULL)
-       {
-               LM_ERR("while constructing xcap path\n");
-               return NULL;
-       }
-
-       stream= send_http_get(path, req.port, req.etag, req.match_type, etag);
-       if(stream== NULL)
-       {
-               LM_DBG("the serched element was not found\n");
-       }
-
-       if(etag== NULL)
-       {
-               LM_ERR("no etag found\n");
-               pkg_free(stream);
-               stream= NULL;
-       }
-
-       if(path)
-               pkg_free(path);
-
-       return stream;
-}
-
 size_t get_xcap_etag( void *ptr, size_t size, size_t nmemb, void *stream)
 {
        int len= 0;