From db93773cc7afe3c22958b089f8557e871626f02a Mon Sep 17 00:00:00 2001 From: jcass Date: Wed, 18 Jan 2017 19:15:37 +0200 Subject: [PATCH] Remove unused function. --- .../static/js/functionsvars.js | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/mopidy_musicbox_webclient/static/js/functionsvars.js b/mopidy_musicbox_webclient/static/js/functionsvars.js index 9e2a011..5b5d07b 100644 --- a/mopidy_musicbox_webclient/static/js/functionsvars.js +++ b/mopidy_musicbox_webclient/static/js/functionsvars.js @@ -393,40 +393,6 @@ function resultsToTables (results, target, uri, onClickBack, backIsOptional) { updatePlayIcons(songdata.track.uri, songdata.tlid, controls.getIconForAction()) } -// process updated playlist to gui -function playlisttotable (pl, target, uri) { - var tmp = '' - $(target).html('') - var targetmin = target.substr(1) - var child = '' - for (var i = 0; i < pl.length; i++) { - if (pl[i]) { - popupData[pl[i].uri] = pl[i] - child = '
  • ' - child += '

    ' + pl[i].name + 'h1>' - child += '

    ' - child += '' + timeFromSeconds(pl[i].length / 1000) + '' - for (var j = 0; j < pl[i].artists.length; j++) { - if (pl[i].artists[j]) { - child += pl[i].artists[j].name - child += (j === pl[i].artists.length - 1) ? '' : ' / ' - // stop after 3 - if (j > 2) { - child += '...' - break - } - } - } - child += ' / ' + pl[i].album.name + '

    ' - child += '

  • ' - tmp += child - } - } - - $(target).html(tmp) - $(target).attr('data', uri) -} - function getPlaylistTracks (uri) { if (playlists[uri] && playlists[uri].tracks) { return Mopidy.when(playlists[uri].tracks)