Skip to content

Commit

Permalink
[Console] Remove unused code (#59554)
Browse files Browse the repository at this point in the history
* Remove unused code

* fix: remove use of undeclared variable

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
jloleysens and elasticmachine authored Mar 10, 2020
1 parent 565dd25 commit 03d082c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions src/plugins/console/public/application/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -59,7 +54,6 @@ export function renderApp({
const history = createHistory({ storage });
const settings = createSettings({ storage });
const objectStorageClient = localStorageObjectClient.create(storage);
settingsRef = settings;

render(
<I18nContext>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
() =>
Expand Down

0 comments on commit 03d082c

Please sign in to comment.