From 5c20338a4140c83444902c20a724de51cbdee136 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 22 Oct 2015 17:18:22 -0400 Subject: [PATCH] CRM-13823 - Remove unused api calls --- ang/crmStatusPage.js | 3 --- ang/crmStatusPage/StatusPageServices.js | 26 +++++-------------------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/ang/crmStatusPage.js b/ang/crmStatusPage.js index 91a6046637..a821a13073 100644 --- a/ang/crmStatusPage.js +++ b/ang/crmStatusPage.js @@ -15,9 +15,6 @@ statuses: function(statuspageGetStatuses) { return statuspageGetStatuses({sequential: 1}); }, - statusModel: function(statuspageStatusModel) { - return statuspageStatusModel(); - }, preferences: function(statuspageGetPreferences){ return statuspageGetPreferences(); } diff --git a/ang/crmStatusPage/StatusPageServices.js b/ang/crmStatusPage/StatusPageServices.js index 8f82941883..1858a831b3 100644 --- a/ang/crmStatusPage/StatusPageServices.js +++ b/ang/crmStatusPage/StatusPageServices.js @@ -1,26 +1,10 @@ (function(angular, $, _) { -/** - * get status messages - * build snooze options object reconciled with preferences - * - */ - angular.module('statuspage').service('statuspageStatusModel', function(crmApi, statuspageGetStatuses, statuspageGetPreferences){ - return function() { - var statusModel = { - hushed: false, - getStatuses: statuspageGetStatuses, - getPreferences: statuspageGetPreferences, - }; - statusModel.statuses = statusModel - .getStatuses(statusModel.hushed) - .then(function(result){ - result.preferences = statuspageGetPreferences(); - return result; - }); - }; - }); - + /** + * get status messages + * build snooze options object reconciled with preferences + * + */ angular.module('statuspage').service('statuspageGetStatuses', function(crmApi, statuspageSeverityList) { return function(apiFilter) { return crmApi('System', 'check', apiFilter) -- 2.25.1