From 5be8d4d6336a41924738efc3a8fcacba91c99411 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 21 Jun 2010 10:26:45 +0000 Subject: stream_cddb: Remove unused static functions Remove unused static function cddb_get_freedb_sites(), fixes the warning: stream/stream_cddb.c:747: warning: 'cddb_get_freedb_sites' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31508 b3059339-0415-0410-9bf9-f77b7e298cf2 Remove unused static function cddb_freedb_sites_parse(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31510 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cddb.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'stream') diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c index 719eb05754..3ec0630897 100644 --- a/stream/stream_cddb.c +++ b/stream/stream_cddb.c @@ -711,35 +711,6 @@ static int cddb_get_proto_level(cddb_data_t *cddb_data) 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_tmsg(MSGT_DEMUX, MSGL_ERR, "parse error"); - 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_tmsg(MSGT_DEMUX, MSGL_FIXME, "No sites information available.\n"); - break; - default: - mp_tmsg(MSGT_DEMUX, MSGL_FIXME, "unhandled code\n"); - } - return -1; -} - -static int cddb_get_freedb_sites(cddb_data_t *cddb_data) -{ - return cddb_http_request("sites", cddb_freedb_sites_parse, cddb_data); -} - static void cddb_create_hello(cddb_data_t *cddb_data) { char host_name[51]; @@ -788,8 +759,6 @@ static int cddb_retrieve(cddb_data_t *cddb_data) return -1; } - //cddb_get_freedb_sites(&cddb_data); - sprintf(command, "cddb+query+%08lx+%d+%s%d", cddb_data->disc_id, cddb_data->tracks, offsets, time_len); ret = cddb_http_request(command, cddb_query_parse, cddb_data); -- cgit v1.2.3