Skip to content
This repository
Browse code

Merge pull request #1543 from asylumfunk/core.js

[webinterface.default] removed unreferenced functions, moved dangling variable declaration
  • Loading branch information...
commit c5848e91f84300d150d55373e42fd07f28450d53 2 parents f75bac3 + 2c485ca
Sascha Montellese authored October 05, 2012
2  addons/webinterface.default/addon.xml
... ...
@@ -1,7 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <addon
3 3
   id="webinterface.default"
4  
-  version="2.0.4"
  4
+  version="2.0.5"
5 5
   name="Default"
6 6
   provider-name="Team XBMC">
7 7
   <requires>
2  addons/webinterface.default/index.html
@@ -69,6 +69,6 @@
69 69
         <div id="nowPlayingPlaylist" style="display: none;"></div>
70 70
       </div>
71 71
     </div>
72  
-    <script type="text/javascript" src="js/xbmc.launcher.js?v=2.0.3"></script>
  72
+    <script type="text/javascript" src="js/xbmc.launcher.js?v=2.0.5"></script>
73 73
   </body>
74 74
 </html>
33  addons/webinterface.default/js/Core.js
@@ -19,7 +19,7 @@
19 19
  */
20 20
 
21 21
 /* Global Paths */
22  
-
  22
+var commsErrorTimeout;
23 23
 var JSON_RPC = 'jsonrpc';
24 24
 var DEFAULT_ALBUM_COVER = 'images/DefaultAlbumCover.png';
25 25
 var DEFAULT_VIDEO_COVER = 'images/DefaultVideo.png';
@@ -50,32 +50,6 @@ function durationToString(duration) {
50 50
   return result;
51 51
 }
52 52
 
53  
-function timeToString(duration, showMilliseconds) {
54  
-  if (!duration) {
55  
-    return '00:00';
56  
-  }
57  
-  milliseconds = duration.milliseconds
58  
-  var result = '';
59  
-  if (duration.hours) {
60  
-    result += (duration.hours < 10 ? '0' + duration.hours : duration.hours) + ':';
61  
-  }
62  
-  result += (duration.minutes < 10 ? '0' + duration.minutes : duration.minutes) + ':' + (duration.seconds < 10 ? '0' + duration.seconds : duration.seconds);
63  
-  if (showMilliseconds) {
64  
-    result += '.';
65  
-    if (duration.milliseconds < 1000) {
66  
-      result += '.';
67  
-      if (duration.milliseconds < 100) {
68  
-        result += '0';
69  
-        if (duration.milliseconds < 10) {
70  
-          result += '0';
71  
-        }
72  
-      }
73  
-    }
74  
-    result += duration.milliseconds;
75  
-  }
76  
-  return result;
77  
-}
78  
-
79 53
 function timeToDuration(time) {
80 54
   return time.hours * 3600 + time.minutes * 60 + time.seconds;
81 55
 }
@@ -84,8 +58,6 @@ function applyDeviceFixes() {
84 58
   document.addEventListener('touchmove', function(e){ e.preventDefault(); });
85 59
 }
86 60
 
87  
-var commsErrorTimeout;
88  
-
89 61
 function displayCommunicationError(m) {
90 62
   clearTimeout(commsErrorTimeout);
91 63
   var message = m || 'Connection to server lost';
@@ -117,6 +89,3 @@ function getCookie(name) {
117 89
   return null;
118 90
 }
119 91
 
120  
-function deleteCookie(name) {
121  
-  setCookie(name,"",-1);
122  
-}
2  addons/webinterface.default/js/xbmc.launcher.js
@@ -24,7 +24,7 @@
24 24
     var i,
25 25
         script,
26 26
         debug = false, /* Set to true to disable cached javascript */
27  
-        version = (debug ? Math.random() : '2.0.3'),
  27
+        version = (debug ? Math.random() : '2.0.5'),
28 28
         scripts = [
29 29
             "js/jquery-1.5.2.min.js",
30 30
             "js/jquery.lazyload.js",

0 notes on commit c5848e9

Please sign in to comment.
Something went wrong with that request. Please try again.