Skip to content

Commit 3920527

Browse files
committed
Remove unused injections
1 parent dbd99ae commit 3920527

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

h/static/scripts/app-controller.coffee

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ angular = require('angular')
33

44
module.exports = class AppController
55
this.$inject = [
6-
'$controller', '$document', '$location', '$rootScope', '$route', '$scope',
7-
'$window',
6+
'$controller', '$document', '$location', '$route', '$scope', '$window',
87
'auth', 'drafts', 'features', 'identity',
9-
'permissions', 'streamer', 'annotationUI',
8+
'streamer', 'annotationUI',
109
'annotationMapper', 'threading'
1110
]
1211
constructor: (
13-
$controller, $document, $location, $rootScope, $route, $scope,
14-
$window,
12+
$controller, $document, $location, $route, $scope, $window,
1513
auth, drafts, features, identity,
16-
permissions, streamer, annotationUI,
14+
streamer, annotationUI,
1715
annotationMapper, threading
1816
) ->
1917
$controller('AnnotationUIController', {$scope})

h/static/scripts/test/app-controller-test.coffee

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ describe 'AppController', ->
1111
fakeIdentity = null
1212
fakeLocation = null
1313
fakeParams = null
14-
fakePermissions = null
1514
fakeStore = null
1615
fakeStreamer = null
1716
fakeStreamFilter = null
@@ -68,10 +67,6 @@ describe 'AppController', ->
6867

6968
fakeParams = {id: 'test'}
7069

71-
fakePermissions = {
72-
permits: sandbox.stub().returns(true)
73-
}
74-
7570
fakeStore = {
7671
SearchResource: {
7772
get: sinon.spy()
@@ -104,7 +99,6 @@ describe 'AppController', ->
10499
$provide.value 'identity', fakeIdentity
105100
$provide.value '$location', fakeLocation
106101
$provide.value '$routeParams', fakeParams
107-
$provide.value 'permissions', fakePermissions
108102
$provide.value 'store', fakeStore
109103
$provide.value 'streamer', fakeStreamer
110104
$provide.value 'streamfilter', fakeStreamFilter

0 commit comments

Comments
 (0)