From 3acdd916b017a168aba84ae1f9fef001e2c78193 Mon Sep 17 00:00:00 2001 From: Kevin Dierkx Date: Fri, 7 Aug 2015 14:55:59 +0200 Subject: [PATCH] Removed large chunks of commented code --- ui/scripts/instances.js | 9 -- ui/scripts/regions.js | 10 -- ui/scripts/storage.js | 9 -- ui/scripts/templates.js | 24 ---- ui/scripts/ui-custom/regions.js | 4 - ui/scripts/ui/widgets/detailView.js | 16 --- ui/scripts/ui/widgets/listView.js | 2 +- ui/scripts/vpc.js | 22 --- ui/scripts/zoneWizard.js | 205 +--------------------------- 9 files changed, 2 insertions(+), 299 deletions(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 1347422ac5e..3fdd7701fbf 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1960,15 +1960,6 @@ converter: cloudStack.converters.toBooleanText }, - /* - isoid: { - label: 'label.attached.iso', - isEditable: false, - converter: function(isoid) { - return cloudStack.converters.toBooleanText(isoid != null); - } - }, - */ isoname: { label: 'label.attached.iso' }, diff --git a/ui/scripts/regions.js b/ui/scripts/regions.js index 4edc09600bf..05d46b8e297 100644 --- a/ui/scripts/regions.js +++ b/ui/scripts/regions.js @@ -196,16 +196,6 @@ preAction: function(args) { var region = args.context.regions[0]; - /* e.g. - region.endpoint == "http://localhost:8080/client/" - document.location.href == "http://localhost:8080/client/#" - */ - /* - if(document.location.href.indexOf(region.endpoint) != -1) { - cloudStack.dialog.notice({ message: _l('You can not remove the region that you are currently in.') }); - return false; - } - */ return true; }, action: function(args) { diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 3efc3a99164..b7c71a4cd46 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -53,15 +53,6 @@ vmdisplayname: { label: 'label.vm.display.name' } - - /* - state: { - label: 'State', - indicator: { - 'Ready': 'on' - } - } - */ }, // List view actions diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 171d34b2aeb..298f48b6a3a 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -519,7 +519,6 @@ }); } - //XenServer only (starts here) if (args.$form.find('.form-item[rel=xenserverToolsVersion61plus]').css("display") != "none") { $.extend(data, { @@ -528,7 +527,6 @@ } //XenServer only (ends here) - //VMware only (starts here) if (args.$form.find('.form-item[rel=rootDiskControllerType]').css("display") != "none" && args.data.rootDiskControllerType != "") { $.extend(data, { @@ -555,16 +553,6 @@ args.response.success({ data: items[0] }); - /* - if(items.length > 1) { - for(var i=1; i