[vlc-devel] [PATCH v3 2/4] audioscrobbler: remove dead code
Jonas Lundqvist
jonas at gannon.se
Mon Nov 9 16:39:40 CET 2015
Remove the old (unused) code related to the "Now Playing" feature.
---
modules/misc/audioscrobbler.c | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c
index e5c3f56..37228f3 100644
--- a/modules/misc/audioscrobbler.c
+++ b/modules/misc/audioscrobbler.c
@@ -87,12 +87,6 @@ struct intf_sys_t
/* submission of played songs */
vlc_url_t p_submit_url; /**< where to submit data */
- /* submission of playing song */
-#if 0 //NOT USED
- char *psz_nowp_host; /**< where to submit data */
- int i_nowp_port; /**< port to which submit */
- char *psz_nowp_file; /**< file to which submit */
-#endif
char psz_auth_token[33]; /**< Authentication token */
/* data about song currently playing */
@@ -449,10 +443,6 @@ static void Close(vlc_object_t *p_this)
for (i = 0; i < p_sys->i_songs; i++)
DeleteSong(&p_sys->p_queue[i]);
vlc_UrlClean(&p_sys->p_submit_url);
-#if 0 //NOT USED
- free(p_sys->psz_nowp_host);
- free(p_sys->psz_nowp_file);
-#endif
vlc_cond_destroy(&p_sys->wait);
vlc_mutex_destroy(&p_sys->lock);
free(p_sys);
@@ -616,23 +606,6 @@ static int Handshake(intf_thread_t *p_this)
/* We need to read the nowplaying url */
p_buffer_pos += 7; /* we skip "http://" */
-#if 0 //NOT USED
- psz_url = strndup(p_buffer_pos, strcspn(p_buffer_pos, "\n"));
- if (!psz_url)
- goto oom;
-
- switch(ParseURL(psz_url, &p_sys->psz_nowp_host,
- &p_sys->psz_nowp_file, &p_sys->i_nowp_port))
- {
- case VLC_ENOMEM:
- goto oom;
- case VLC_EGENERIC:
- goto proto;
- case VLC_SUCCESS:
- default:
- break;
- }
-#endif
p_buffer_pos = strstr(p_buffer_pos, "http://");
if (!p_buffer_pos || strlen(p_buffer_pos) == 7)
goto proto;
--
2.6.2
More information about the vlc-devel
mailing list