From 40690df347fa3767f7c599d79c1814d480ee517e Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Thu, 4 Jun 2015 09:35:16 -0400 Subject: [PATCH] Remove dead code --- .../data-services/fact-scan-data.service.js | 23 ------------------- .../system-tracking.controller.js | 15 ------------ 2 files changed, 38 deletions(-) diff --git a/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js b/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js index eb77caecad..6caa558aab 100644 --- a/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js +++ b/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js @@ -22,29 +22,6 @@ function (Rest, GetBasePath, ProcessErrors, _) { } return { - getHostFacts: function(host, moduleName, date, fetchScanNumber) { - - var getVersion = _.partial(this.getVersion, host, moduleName); - var getFacts = this.getFacts; - - return getVersion(date.from, date.to, fetchScanNumber) - .then(function(versionData) { - if (_.isEmpty(versionData)) { - var retryStartDate = date.from.clone().subtract(1, 'year'); - return getVersion(retryStartDate, date.from, fetchScanNumber); - } else { - return versionData; - } - }) - .then(function(versionData) { - if (_.isEmpty(versionData)) { - return { fact: [] }; - } else { - return getFacts(versionData); - } - }); - - }, getFacts: function(version) { var promise; Rest.setUrl(version.related.fact_view); diff --git a/awx/ui/static/js/system-tracking/system-tracking.controller.js b/awx/ui/static/js/system-tracking/system-tracking.controller.js index 3ad4e1181d..4e48189757 100644 --- a/awx/ui/static/js/system-tracking/system-tracking.controller.js +++ b/awx/ui/static/js/system-tracking/system-tracking.controller.js @@ -29,9 +29,6 @@ function controller($rootScope, $scope.modules = initialFactData.moduleOptions; - // Use this to determine how to orchestrate the services - var viewType = hostIds.length > 1 ? 'multiHost' : 'singleHost'; - var searchConfig = { leftRange: initialFactData.leftSearchRange, rightRange: initialFactData.rightSearchRange @@ -46,16 +43,6 @@ function controller($rootScope, $scope.leftHostname = hosts[0].name; $scope.rightHostname = hosts.length > 1 ? hosts[1].name : hosts[0].name; - function setHeaderValues(viewType) { - if (viewType === 'singleHost') { - $scope.comparisonLeftHeader = $scope.leftScanDate; - $scope.comparisonRightHeader = $scope.rightScanDate; - } else { - $scope.comparisonLeftHeader = hosts[0].name; - $scope.comparisonRightHeader = hosts[1].name; - } - } - function reloadData(params, initialData) { searchConfig = _.assign({}, searchConfig, params); @@ -141,8 +128,6 @@ function controller($rootScope, $scope.factData = info; - setHeaderValues(viewType); - return info; }).finally(function() {