[vlc-commits] cookies: remove dead code
Rémi Denis-Courmont
git at videolan.org
Thu Sep 8 18:39:52 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 8 19:31:02 2016 +0300| [bae60ab231b14fb9cdc0a21edfbb2fe73a8a9ad8] | committer: Rémi Denis-Courmont
cookies: remove dead code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bae60ab231b14fb9cdc0a21edfbb2fe73a8a9ad8
---
include/vlc_http.h | 4 ----
src/libvlccore.sym | 2 --
src/misc/httpcookies.c | 33 ---------------------------------
3 files changed, 39 deletions(-)
diff --git a/include/vlc_http.h b/include/vlc_http.h
index 6065e7c..335e0f3 100644
--- a/include/vlc_http.h
+++ b/include/vlc_http.h
@@ -84,8 +84,6 @@ VLC_API void vlc_http_cookies_destroy( vlc_http_cookie_jar_t * p_jar );
VLC_API bool vlc_http_cookies_store( vlc_http_cookie_jar_t *jar,
const char *cookie, bool secure, const char *host, const char *path );
-VLC_API bool vlc_http_cookies_append( vlc_http_cookie_jar_t * p_jar, const char * psz_cookie_header, const vlc_url_t * p_url );
-
/**
* Returns a cookie value that match the given URL.
*
@@ -96,6 +94,4 @@ VLC_API bool vlc_http_cookies_append( vlc_http_cookie_jar_t * p_jar, const char
VLC_API char *vlc_http_cookies_fetch( vlc_http_cookie_jar_t *jar, bool secure,
const char *host, const char *path );
-VLC_API char *vlc_http_cookies_for_url( vlc_http_cookie_jar_t * p_jar, const vlc_url_t * p_url );
-
#endif /* VLC_HTTP_H */
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 9d96c2f..cd56a3d 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -139,8 +139,6 @@ vlc_http_cookies_new
vlc_http_cookies_destroy
vlc_http_cookies_store
vlc_http_cookies_fetch
-vlc_http_cookies_append
-vlc_http_cookies_for_url
httpd_ClientIP
httpd_FileDelete
httpd_FileNew
diff --git a/src/misc/httpcookies.c b/src/misc/httpcookies.c
index b216208..4eb39ad 100644
--- a/src/misc/httpcookies.c
+++ b/src/misc/httpcookies.c
@@ -347,23 +347,6 @@ bool vlc_http_cookies_store(vlc_http_cookie_jar_t *p_jar, const char *cookies,
return true;
}
-bool vlc_http_cookies_append(vlc_http_cookie_jar_t *jar,
- const char *cookies, const vlc_url_t *url)
-{
- bool secure;
-
- if (url->psz_protocol == NULL || url->psz_host == NULL
- || url->psz_path == NULL)
- return false;
- else if (!vlc_ascii_strcasecmp(url->psz_protocol, "https"))
- secure = true;
- else
- secure = false;
-
- return vlc_http_cookies_store(jar, cookies, secure, url->psz_host,
- url->psz_path);
-}
-
char *vlc_http_cookies_fetch(vlc_http_cookie_jar_t *p_jar, bool secure,
const char *host, const char *path)
{
@@ -398,19 +381,3 @@ char *vlc_http_cookies_fetch(vlc_http_cookie_jar_t *p_jar, bool secure,
return psz_cookiebuf;
}
-
-char *vlc_http_cookies_for_url(vlc_http_cookie_jar_t *jar,
- const vlc_url_t *url)
-{
- bool secure;
-
- if (url->psz_protocol == NULL || url->psz_host == NULL
- || url->psz_path == NULL)
- return NULL;
- else if (!vlc_ascii_strcasecmp(url->psz_protocol, "https"))
- secure = true;
- else
- secure = false;
-
- return vlc_http_cookies_fetch(jar, secure, url->psz_host, url->psz_path);
-}
More information about the vlc-commits
mailing list