[pve-devel] [PATCH widget-toolkit 12/15] remove unnecessary formatter

Dominik Csapak d.csapak at proxmox.com
Mon Jan 15 15:17:45 CET 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 Utils.js | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/Utils.js b/Utils.js
index 488fdde..b090374 100644
--- 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';
-- 
2.11.0





More information about the pve-devel mailing list