[vlc-devel] commit: Remove vlc_UrlEncode ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jun 22 19:05:05 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 22 19:45:52 2009 +0300| [d4bd159e337db3898be671832c3da431016c5d22] | committer: Rémi Denis-Courmont 

Remove vlc_UrlEncode

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4bd159e337db3898be671832c3da431016c5d22
---

 include/vlc_url.h          |    6 ------
 modules/control/http/rpn.c |    2 +-
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/include/vlc_url.h b/include/vlc_url.h
index e5b29eb..714a3f2 100644
--- a/include/vlc_url.h
+++ b/include/vlc_url.h
@@ -193,12 +193,6 @@ static inline void vlc_UrlClean( vlc_url_t *url )
     url->psz_buffer   = NULL;
 }
 
-static inline char *vlc_UrlEncode( const char *psz_url )
-{
-    /* FIXME: do not encode / : ? and & _when_ not needed */
-    return encode_URI_component( psz_url );
-}
-
 #include <ctype.h>
 
 /** Check whether a given string is not a valid URL and must hence be
diff --git a/modules/control/http/rpn.c b/modules/control/http/rpn.c
index 43e72c5..bf29c17 100644
--- a/modules/control/http/rpn.c
+++ b/modules/control/http/rpn.c
@@ -360,7 +360,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t  *vars,
         else if( !strcmp( s, "url_encode" ) )
         {
             char *url = SSPop( st );
-            char *value = vlc_UrlEncode( url );
+            char *value = encode_URI_component( url );
             free( url );
             SSPush( st, value );
             free( value );




More information about the vlc-devel mailing list