From d0c1d83f903a00416c80a6b8dc6c6a7a775b2f32 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sat, 21 Nov 2015 16:36:10 +0100 Subject: [PATCH] Remove more comp hacks --- data/js/tomahawk.js | 58 --------------------------------------------- 1 file changed, 58 deletions(-) diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index c51503185..bd382746a 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -1795,61 +1795,3 @@ Tomahawk.Collection = { return params; } }; - -// Legacy compability for 0.8 and before -Tomahawk.reportCapabilities = function (capabilities) { - if (capabilities & TomahawkResolverCapability.Browsable) { - Tomahawk.PluginManager.registerPlugin("collection", Tomahawk.resolver.instance); - } - - Tomahawk.nativeReportCapabilities(capabilities); -}; - -Tomahawk.addArtistResults = Tomahawk.addAlbumResults = Tomahawk.addAlbumTrackResults - = function (result) { - Tomahawk.PluginManager.resolve[result.qid](result); - delete Tomahawk.PluginManager.resolve[result.qid]; -}; - -Tomahawk.addTrackResults = function (result) { - Tomahawk.PluginManager.resolve[result.qid](result.results); - delete Tomahawk.PluginManager.resolve[result.qid]; -}; - -Tomahawk.addUrlResult = function (url, result) { - /* Merge the whole mess into one consistent result which is independent of type - var cleanResult = { - type: result.type, - guid: result.guid, - info: result.info, - creator: result.creator, - linkUrl: result.url - }; - if (cleanResult.type == "track") { - cleanResult.track = result.title; - cleanResult.artist = result.artist; - } else if (cleanResult.type == "artist") { - cleanResult.artist = result.name; - } else if (cleanResult.type == "album") { - cleanResult.album = result.name; - cleanResult.artist = result.artist; - } else if (cleanResult.type == "playlist") { - cleanResult.title = result.title; - } else if (cleanResult.type == "xspf-url") { - cleanResult.url = result.url; - } - if (result.tracks) { - cleanResult.tracks = []; - var i; - for (i=0;i