Mercurial > mplayer.hg
changeset 31444:d8fcf2a01af2
Remove unused static function cddb_freedb_sites_parse().
author | diego |
---|---|
date | Mon, 21 Jun 2010 10:33:00 +0000 |
parents | ea6731235485 |
children | 872a1ef8b43b |
files | stream/stream_cddb.c |
diffstat | 1 files changed, 0 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_cddb.c Mon Jun 21 10:30:54 2010 +0000 +++ b/stream/stream_cddb.c Mon Jun 21 10:33:00 2010 +0000 @@ -719,30 +719,6 @@ return cddb_http_request("stat", cddb_proto_level_parse, cddb_data); } -static int cddb_freedb_sites_parse(HTTP_header_t *http_hdr, cddb_data_t *cddb_data) -{ - int ret, status; - - ret = sscanf(http_hdr->body, "%d ", &status); - if (ret != 1) { - mp_msg(MSGT_DEMUX, MSGL_ERR, MSGTR_ParseError); - return -1; - } - - switch (status) { - case 210: - // TODO: Parse the sites - ret = cddb_data->anonymous; // For gcc complaining about unused parameter. - return 0; - case 401: - mp_msg(MSGT_DEMUX, MSGL_FIXME, MSGTR_MPDEMUX_CDDB_NoSitesInfoAvailable); - break; - default: - mp_msg(MSGT_DEMUX, MSGL_FIXME, MSGTR_MPDEMUX_CDDB_UnhandledCode); - } - return -1; -} - static void cddb_create_hello(cddb_data_t *cddb_data) { char host_name[51];