From f9c2e7f4bc10230fa51f52d554a57335a5372228 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 21 Jul 2017 23:11:04 +0200 Subject: [PATCH] Cleanup imports. --- src/scheduler/schedule.controller.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/scheduler/schedule.controller.ts b/src/scheduler/schedule.controller.ts index 180b2c0..5f53ba5 100644 --- a/src/scheduler/schedule.controller.ts +++ b/src/scheduler/schedule.controller.ts @@ -2,16 +2,14 @@ var scheduleFormTmpl = require('./schedule.form.tmpl.html'), scheduleDeleteTmpl = require('./schedule.delete.tmpl.html'); export class ScheduleController{ - $inject=['$rootScope', '$stateParams', 'Notification', 'ScheduledOperation', '$log', '$modal'] + $inject=['$stateParams', 'Notification', 'ScheduledOperation', '$modal'] operations = []; constructor( - private $rootScope, private $stateParams, private Notification, private ScheduledOperation, - private $log, private $modal ) { // Load operations on controller initialization. @@ -51,8 +49,6 @@ export class ScheduleController{ return operation; }, function(result){ - this.$log.error('Error while saving scheduled operation', operation, result); - this.Notification.error( 'Error while saving scheduled operation: ' + result.message );