Browse code

http_client.c Remove code that doesn't even try to work

Olle E. Johansson authored on 30/03/2016 13:01:45
Showing 1 changed files
... ...
@@ -167,9 +167,6 @@ static pv_export_t mod_pvs[] = {
167 167
     {{"curlerror", (sizeof("curlerror")-1)}, /* Curl error codes */
168 168
      PVT_OTHER, pv_get_curlerror, 0,
169 169
 	pv_parse_curlerror, 0, 0, 0},
170
-    {{"curlredirect", (sizeof("redirect")-1)}, /* Curl error codes */
171
-     PVT_OTHER, pv_get_curlredirect, 0,
172
-	pv_parse_curlredirect, 0, 0, 0},
173 170
     {{0, 0}, 0, 0, 0, 0, 0, 0, 0}
174 171
 };
175 172
 
... ...
@@ -716,31 +713,3 @@ static int pv_get_curlerror(struct sip_msg *msg, pv_param_t *param, pv_value_t *
716 713
 	return pv_get_strval(msg, param, res, &curlerr);
717 714
 }
718 715
 
719
-/*!
720
- * Parse arguments to  pv $curlredirect
721
- */
722
-static int pv_parse_curlredirect(pv_spec_p sp, str *in)
723
-{
724
-	if(sp==NULL || in==NULL || in->len<=0) {
725
-		return -1;
726
-	}
727
-
728
-	// DO SOMETHING HERE
729
-	return 0;
730
-}
731
-
732
-/*
733
- * PV - return curl redirect URL for httpcon
734
- *	$curlredirect("httpcon");
735
- */
736
-static int pv_get_curlredirect(struct sip_msg *msg, pv_param_t *param, pv_value_t *res)
737
-{
738
-	str redirecturl;
739
-
740
-	if(param==NULL) {
741
-		return -1;
742
-	}
743
-
744
-	// DO SOMETHING HERE
745
-	return pv_get_strval(msg, param, res, &redirecturl);
746
-}