forked from xbmc/xbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup - removed unreferenced functions, moved dangling variable dec…
…laration
- Loading branch information
1 parent
8de9ffd
commit 2c485ca
Showing
4 changed files
with
4 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
*/ | ||
|
||
/* Global Paths */ | ||
|
||
var commsErrorTimeout; | ||
This comment has been minimized.
Sorry, something went wrong.
asylumfunk
Author
Owner
|
||
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) { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
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; | ||
|
||
This comment has been minimized.
Sorry, something went wrong. |
||
function displayCommunicationError(m) { | ||
clearTimeout(commsErrorTimeout); | ||
var message = m || 'Connection to server lost'; | ||
|
@@ -117,6 +89,3 @@ function getCookie(name) { | |
return null; | ||
} | ||
|
||
function deleteCookie(name) { | ||
This comment has been minimized.
Sorry, something went wrong. |
||
setCookie(name,"",-1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bump