From: Coleman Watts Date: Thu, 22 Oct 2015 21:18:22 +0000 (-0400) Subject: CRM-13823 - Remove unused api calls X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5c20338a4140c83444902c20a724de51cbdee136;p=civicrm-core.git CRM-13823 - Remove unused api calls --- 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)