1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

cookies: remove dead code

This commit is contained in:
Rémi Denis-Courmont 2016-09-08 19:31:02 +03:00
parent 56c19a293a
commit bae60ab231
3 changed files with 0 additions and 39 deletions

View File

@ -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 */

View File

@ -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

View File

@ -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);
}