CRM-13823 - Remove unused api calls
authorColeman Watts <coleman@civicrm.org>
Thu, 22 Oct 2015 21:18:22 +0000 (17:18 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 22 Oct 2015 21:18:22 +0000 (17:18 -0400)
ang/crmStatusPage.js
ang/crmStatusPage/StatusPageServices.js

index 91a60466373d33239f4b885ad9869e5a9a72a4de..a821a1307318ffb1ee99c40ae7f5fb8d307b1268 100644 (file)
@@ -15,9 +15,6 @@
         statuses: function(statuspageGetStatuses) {
           return statuspageGetStatuses({sequential: 1});
         },
-        statusModel: function(statuspageStatusModel) {
-          return statuspageStatusModel();
-        },
         preferences: function(statuspageGetPreferences){
           return statuspageGetPreferences();
         }
index 8f82941883764e1318b4a5947a753a200a621a03..1858a831b36d358cd2a9d7dc280aa39e65185922 100644 (file)
@@ -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)