Skip to content

Commit ed1e6a5

Browse files
fix(state): remove unused injected variables
1 parent 6709cb9 commit ed1e6a5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/state/state.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,12 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactoryProvider) {
326326
* @ngdoc object
327327
* @name ui.router.state.$state
328328
*
329-
* @requires $rootScope
330329
* @requires $q
331330
* @requires $injector
332331
* @requires ui.router.state.$view
333332
* @requires ui.router.state.$stateParams
334333
* @requires ui.router.router.$urlRouter
335334
* @requires ui.router.state.$transitions
336-
* @requires ui.router.util.$urlMatcherFactory
337335
*
338336
* @property {object} params A param object, e.g. {sectionId: section.id)}, that
339337
* you'd like to test against the current active state.
@@ -348,8 +346,8 @@ function $StateProvider( $urlRouterProvider, $urlMatcherFactoryProvider) {
348346
* you're coming from.
349347
*/
350348
this.$get = $get;
351-
$get.$inject = ['$rootScope', '$q', '$injector', '$view', '$stateParams', '$urlRouter', '$transitions', '$urlMatcherFactory'];
352-
function $get( $rootScope, $q, $injector, $view, $stateParams, $urlRouter, _$transition, $urlMatcherFactory) {
349+
$get.$inject = ['$q', '$injector', '$view', '$stateParams', '$urlRouter', '$transitions'];
350+
function $get( $q, $injector, $view, $stateParams, $urlRouter, _$transition) {
353351

354352
/**
355353
* Invokes the onInvalid callbacks, in natural order. Each callback's return value is checked in sequence

0 commit comments

Comments
 (0)