mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Console] Remove unused code (#59554)
* Remove unused code * fix: remove use of undeclared variable Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
565dd25a8b
commit
03d082c59e
2 changed files with 1 additions and 10 deletions
|
@ -22,16 +22,11 @@ import { render, unmountComponentAtNode } from 'react-dom';
|
|||
import { NotificationsSetup } from 'src/core/public';
|
||||
import { ServicesContextProvider, EditorContextProvider, RequestContextProvider } from './contexts';
|
||||
import { Main } from './containers';
|
||||
import { createStorage, createHistory, createSettings, Settings } from '../services';
|
||||
import { createStorage, createHistory, createSettings } from '../services';
|
||||
import * as localStorageObjectClient from '../lib/local_storage_object_client';
|
||||
import { createUsageTracker } from '../services/tracker';
|
||||
import { UsageCollectionSetup } from '../../../usage_collection/public';
|
||||
|
||||
let settingsRef: Settings;
|
||||
export function legacyBackDoorToSettings() {
|
||||
return settingsRef;
|
||||
}
|
||||
|
||||
export interface BootDependencies {
|
||||
docLinkVersion: string;
|
||||
I18nContext: any;
|
||||
|
@ -59,7 +54,6 @@ export function renderApp({
|
|||
const history = createHistory({ storage });
|
||||
const settings = createSettings({ storage });
|
||||
const objectStorageClient = localStorageObjectClient.create(storage);
|
||||
settingsRef = settings;
|
||||
|
||||
render(
|
||||
<I18nContext>
|
||||
|
|
|
@ -20,9 +20,6 @@
|
|||
|
||||
import '../legacy_core_editor/legacy_core_editor.test.mocks';
|
||||
|
||||
// TODO: Remove this mock
|
||||
jest.mock('../../../application', () => ({ legacyBackDoorToSettings: () => {} }));
|
||||
|
||||
import jQuery from 'jquery';
|
||||
jest.spyOn(jQuery, 'ajax').mockImplementation(
|
||||
() =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue