Browse Source

Removed unused alertingSrv

Torkel Ödegaard 7 years ago
parent
commit
a4824085e3

+ 0 - 13
public/app/features/dashboard/alerting_srv.ts

@@ -1,13 +0,0 @@
-import coreModule from 'app/core/core_module';
-
-export class AlertingSrv {
-  dashboard: any;
-  alerts: any[];
-
-  init(dashboard, alerts) {
-    this.dashboard = dashboard;
-    this.alerts = alerts || [];
-  }
-}
-
-coreModule.service('alertingSrv', AlertingSrv);

+ 0 - 2
public/app/features/dashboard/dashboard_ctrl.ts

@@ -22,7 +22,6 @@ export class DashboardCtrl {
     private keybindingSrv,
     private timeSrv,
     private variableSrv,
-    private alertingSrv,
     private dashboardSrv,
     private unsavedChangesSrv,
     private dashboardViewStateSrv,
@@ -54,7 +53,6 @@ export class DashboardCtrl {
 
     // init services
     this.timeSrv.init(dashboard);
-    this.alertingSrv.init(dashboard, data.alerts);
     this.annotationsSrv.init(dashboard);
 
     // template values service needs to initialize completely before

+ 0 - 1
public/app/features/dashboard/index.ts

@@ -1,5 +1,4 @@
 import './dashboard_ctrl';
-import './alerting_srv';
 import './dashboard_loader_srv';
 import './save_as_modal';
 import './save_modal';