]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
remove unnecessary formatter
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 15 Jan 2018 13:09:53 +0000 (14:09 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Mon, 15 Jan 2018 13:09:53 +0000 (14:09 +0100)
Utils.js

index 488fddedc71021c01cc671f4cb3522f8c463143e..b09037410aac6ec81d1e3c30af78ca663b37e420 100644 (file)
--- a/Utils.js
+++ b/Utils.js
@@ -158,26 +158,6 @@ Ext.define('Proxmox.Utils', { utilities: {
        }
     },
 
-    format_duration_short: function(ut) {
-
-       if (ut < 60) {
-           return ut.toString() + 's';
-       }
-
-       if (ut < 3600) {
-           var mins = ut / 60;
-           return mins.toFixed(0) + 'm';
-       }
-
-       if (ut < 86400) {
-           var hours = ut / 3600;
-           return hours.toFixed(0) + 'h';
-       }
-
-       var days = ut / 86400;
-       return days.toFixed(0) + 'd';
-    },
-
     format_subscription_level: function(level) {
        if (level === 'c') {
            return 'Community';