'use strict';

/**
 * @module opa
 */

(function(app) {

  /**
   * Manages opaToolbar component.
   *
   * @class OpaToolbarController
   * @constructor
   * @param {Object} $scope opa-toolbar isolated scope
   * @param {Object} $window JQLite element of the window
   * @param {Object} $mdMedia AngularJS Material service to evaluate media queries
   * @param {Object} $mdSidenav AngularJS Material service to manipulate sidenav directives
   * @param {Object} opaUserFactory User factory to manage authenticated user
   */
  function OpaToolbarController($scope, $window, $mdMedia, $mdSidenav, opaUserFactory) {
    var ctrl = this;

    Object.defineProperties(ctrl, {

      /**
       * AngularJS Material $mdMedia service.
       *
       * @property $mdMedia
       * @type Object
       * @final
       */
      $mdMedia: {
        value: $mdMedia
      }

    });
  }

  app.controller('OpaToolbarController', OpaToolbarController);
  OpaToolbarController.$inject = ['$scope', '$window', '$mdMedia', '$mdSidenav', 'opaUserFactory'];

})(angular.module('opa'));

@@ -173,443 +173,115 @@
 t%7D $
-scope opa-toolbar isolated scope%0A   * @param %7BObject%7D $window JQLite element of the window%0A   * @param %7BObject%7D $mdMedia AngularJS Material service to evaluate media queries%0A   * @param %7BObject%7D $mdSidenav AngularJS Material service to manipulate sidenav directives%0A   * @param %7BObject%7D opaUserFactory User factory to manage authenticated user%0A   */%0A  function OpaToolbarController($scope, $window, $mdMedia, $mdSidenav, opaUserFactory
+mdMedia AngularJS Material service to evaluate media queries%0A   */%0A  function OpaToolbarController($mdMedia
 ) %7B%0A
@@ -648,68 +648,15 @@
  %5B'$
-scope', '$window', '$mdMedia', '$mdSidenav', 'opaUserFactory
+mdMedia
 '%5D;%0A

Remove unused dependencies from toolbar component