mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
remove unused injected dependencies (3rd in a series) (#37947)
* remove unused injected dependencies
This commit is contained in:
parent
f90c7a07bf
commit
02ad1cfed4
11 changed files with 11 additions and 11 deletions
|
@ -23,7 +23,7 @@ import { RequestStatus } from './req_status';
|
|||
import { SearchError } from '../search_strategy/search_error';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export function CallResponseHandlersProvider(Private, Promise) {
|
||||
export function CallResponseHandlersProvider(Promise) {
|
||||
const ABORTED = RequestStatus.ABORTED;
|
||||
const INCOMPLETE = RequestStatus.INCOMPLETE;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ const compiledSourceFieldNameIcon = template(sourceFieldNameIcon);
|
|||
const compiledStringFieldNameIcon = template(stringFieldNameIcon);
|
||||
const compiledUnknownFieldNameIcon = template(unknownFieldNameIcon);
|
||||
|
||||
module.directive('fieldName', function ($compile, $rootScope, config) {
|
||||
module.directive('fieldName', function ($rootScope, config) {
|
||||
return {
|
||||
restrict: 'AE',
|
||||
scope: {
|
||||
|
|
|
@ -32,7 +32,7 @@ uiRoutes
|
|||
k7Breadcrumbs: () => [{ text: i18n.translate('common.ui.errorUrlOverflow.breadcrumbs.errorText', { defaultMessage: 'Error' }) }],
|
||||
controllerAs: 'controller',
|
||||
controller: class OverflowController {
|
||||
constructor(Private, config, $scope) {
|
||||
constructor(Private, $scope) {
|
||||
const kbnUrl = Private(KbnUrlProvider);
|
||||
const urlOverflow = new UrlOverflowService();
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ export default function (opts) {
|
|||
const whenMissingRedirectTo = opts.whenMissingRedirectTo || null;
|
||||
|
||||
uiRoutes
|
||||
.addSetupWork(function loadDefaultIndexPattern(Private, Promise, $route, config) {
|
||||
.addSetupWork(function loadDefaultIndexPattern(Private, $route, config) {
|
||||
const getIds = Private(IndexPatternsGetProvider)('id');
|
||||
const route = _.get($route, 'current.$$route');
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ describe('wrapRouteWithPrep fn', function () {
|
|||
let Promise;
|
||||
let $injector;
|
||||
|
||||
ngMock.inject(function ($rootScope, _Private_, _Promise_, _$injector_) {
|
||||
ngMock.inject(function (_Promise_, _$injector_) {
|
||||
Promise = _Promise_;
|
||||
$injector = _$injector_;
|
||||
});
|
||||
|
|
|
@ -35,7 +35,7 @@ import { callEach } from '../utils/function';
|
|||
|
||||
const urlParam = '_a';
|
||||
|
||||
export function AppStateProvider(Private, $rootScope, $location, $injector) {
|
||||
export function AppStateProvider(Private, $location, $injector) {
|
||||
const State = Private(StateProvider);
|
||||
const PersistedState = $injector.get('PersistedState');
|
||||
let persistedStates;
|
||||
|
|
|
@ -27,7 +27,7 @@ const $style = $('<style>').appendTo('head').attr('id', 'style-compile');
|
|||
|
||||
uiModules
|
||||
.get('kibana')
|
||||
.run(function ($rootScope, $compile, config) {
|
||||
.run(function ($rootScope, config) {
|
||||
const truncateGradientHeight = 15;
|
||||
const template = _.template(cssTmpl);
|
||||
const locals = {};
|
||||
|
|
|
@ -28,7 +28,7 @@ import { uiModules } from '../modules';
|
|||
uiModules.get('kibana/url')
|
||||
.service('redirectWhenMissing', function (Private) { return Private(RedirectWhenMissingProvider); });
|
||||
|
||||
export function RedirectWhenMissingProvider($location, kbnUrl, Promise) {
|
||||
export function RedirectWhenMissingProvider(kbnUrl, Promise) {
|
||||
/**
|
||||
* Creates an error handler that will redirect to a url when a SavedObjectNotFound
|
||||
* error is thrown
|
||||
|
|
|
@ -32,7 +32,7 @@ import { I18nContext } from 'ui/i18n';
|
|||
|
||||
uiModules
|
||||
.get('app/visualize')
|
||||
.directive('visEditorVisOptions', function (Private, $compile) {
|
||||
.directive('visEditorVisOptions', function ($compile) {
|
||||
return {
|
||||
restrict: 'E',
|
||||
template: visOptionsTemplate,
|
||||
|
|
|
@ -30,7 +30,7 @@ import { VisFiltersProvider } from '../vis_filters';
|
|||
import $ from 'jquery';
|
||||
import { defaultsDeep } from 'lodash';
|
||||
|
||||
export function VislibVisTypeProvider(Private, $rootScope, $timeout, $compile) {
|
||||
export function VislibVisTypeProvider(Private, $rootScope, $compile) {
|
||||
const vislib = Private(VislibProvider);
|
||||
const visFilters = Private(VisFiltersProvider);
|
||||
const BaseVisType = Private(BaseVisTypeProvider);
|
||||
|
|
|
@ -11,7 +11,7 @@ import { SavedObjectLoader, SavedObjectsClientProvider } from 'ui/saved_objects'
|
|||
const module = uiModules.get('app/maps');
|
||||
|
||||
// This is the only thing that gets injected into controllers
|
||||
module.service('gisMapSavedObjectLoader', function (Private, SavedGisMap, kbnIndex, kbnUrl, $http, chrome) {
|
||||
module.service('gisMapSavedObjectLoader', function (Private, SavedGisMap, kbnUrl, chrome) {
|
||||
const savedObjectClient = Private(SavedObjectsClientProvider);
|
||||
return new SavedObjectLoader(SavedGisMap, kbnUrl, chrome, savedObjectClient);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue