[vlc-commits] audioscrobbler: remove dead code
Jonas Lundqvist
git at videolan.org
Wed Nov 25 23:22:17 CET 2015
vlc | branch: master | Jonas Lundqvist <jonas at gannon.se> | Mon Nov 9 16:39:40 2015 +0100| [d7dcada304a61a9fa82ea459b9c6ffde9ff506da] | committer: Jean-Baptiste Kempf
audioscrobbler: remove dead code
Remove the old (unused) code related to the "Now Playing" feature.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7dcada304a61a9fa82ea459b9c6ffde9ff506da
---
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;
More information about the vlc-commits
mailing list