[MPlayer-cvslog] r31510 - trunk/stream/stream_cddb.c

diego subversion at mplayerhq.hu
Mon Jun 21 12:33:00 CEST 2010


Author: diego
Date: Mon Jun 21 12:33:00 2010
New Revision: 31510

Log:
Remove unused static function cddb_freedb_sites_parse().

Modified:
   trunk/stream/stream_cddb.c

Modified: trunk/stream/stream_cddb.c
==============================================================================
--- trunk/stream/stream_cddb.c	Mon Jun 21 12:30:54 2010	(r31509)
+++ trunk/stream/stream_cddb.c	Mon Jun 21 12:33:00 2010	(r31510)
@@ -719,30 +719,6 @@ static int cddb_get_proto_level(cddb_dat
     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];


More information about the MPlayer-cvslog mailing list