diff options
author | asylumfunk <asylumfunk@asylumfunk.com> | 2012-09-28 19:20:17 -0700 |
---|---|---|
committer | asylumfunk <asylumfunk@asylumfunk.com> | 2012-10-05 03:25:20 -0700 |
commit | 2c485ca125688fbd30e739511ba87eca5c3dae05 (patch) | |
tree | 09101d9da017b97ad05d4a8f55ed50e44dfb0ebf /addons/webinterface.default/js | |
parent | 8de9ffd12683459916caad3f9865d0c4fa0f9147 (diff) |
cleanup - removed unreferenced functions, moved dangling variable declaration
Diffstat (limited to 'addons/webinterface.default/js')
-rw-r--r-- | addons/webinterface.default/js/Core.js | 33 | ||||
-rw-r--r-- | addons/webinterface.default/js/xbmc.launcher.js | 2 |
2 files changed, 2 insertions, 33 deletions
diff --git a/addons/webinterface.default/js/Core.js b/addons/webinterface.default/js/Core.js index 3bda0faefe..aae947f2d6 100644 --- a/addons/webinterface.default/js/Core.js +++ b/addons/webinterface.default/js/Core.js @@ -19,7 +19,7 @@ */ /* Global Paths */ - +var commsErrorTimeout; var JSON_RPC = 'jsonrpc'; var DEFAULT_ALBUM_COVER = 'images/DefaultAlbumCover.png'; var DEFAULT_VIDEO_COVER = 'images/DefaultVideo.png'; @@ -50,32 +50,6 @@ function durationToString(duration) { return result; } -function timeToString(duration, showMilliseconds) { - if (!duration) { - return '00:00'; - } - milliseconds = duration.milliseconds - var result = ''; - if (duration.hours) { - result += (duration.hours < 10 ? '0' + duration.hours : duration.hours) + ':'; - } - result += (duration.minutes < 10 ? '0' + duration.minutes : duration.minutes) + ':' + (duration.seconds < 10 ? '0' + duration.seconds : duration.seconds); - if (showMilliseconds) { - result += '.'; - if (duration.milliseconds < 1000) { - result += '.'; - if (duration.milliseconds < 100) { - result += '0'; - if (duration.milliseconds < 10) { - result += '0'; - } - } - } - result += duration.milliseconds; - } - return result; -} - function timeToDuration(time) { return time.hours * 3600 + time.minutes * 60 + time.seconds; } @@ -84,8 +58,6 @@ function applyDeviceFixes() { document.addEventListener('touchmove', function(e){ e.preventDefault(); }); } -var commsErrorTimeout; - function displayCommunicationError(m) { clearTimeout(commsErrorTimeout); var message = m || 'Connection to server lost'; @@ -117,6 +89,3 @@ function getCookie(name) { return null; } -function deleteCookie(name) { - setCookie(name,"",-1); -}
\ No newline at end of file diff --git a/addons/webinterface.default/js/xbmc.launcher.js b/addons/webinterface.default/js/xbmc.launcher.js index 555b577502..6877a208ca 100644 --- a/addons/webinterface.default/js/xbmc.launcher.js +++ b/addons/webinterface.default/js/xbmc.launcher.js @@ -24,7 +24,7 @@ var i, script, debug = false, /* Set to true to disable cached javascript */ - version = (debug ? Math.random() : '2.0.3'), + version = (debug ? Math.random() : '2.0.5'), scripts = [ "js/jquery-1.5.2.min.js", "js/jquery.lazyload.js", |