Commit bae60ab2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

cookies: remove dead code

parent 56c19a29
......@@ -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 */
......@@ -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
......
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment