diff --git a/x-pack/legacy/plugins/canvas/__tests__/fixtures/kibana.js b/x-pack/legacy/plugins/canvas/__tests__/fixtures/kibana.js index 141beb3d34d78..8caab5c41563c 100644 --- a/x-pack/legacy/plugins/canvas/__tests__/fixtures/kibana.js +++ b/x-pack/legacy/plugins/canvas/__tests__/fixtures/kibana.js @@ -23,7 +23,6 @@ export class Plugin { [this.props.name]: {}, elasticsearch: mockElasticsearch, }, - injectUiAppVars: noop, config: () => ({ get: key => get(config, key), has: key => has(config, key), diff --git a/x-pack/legacy/plugins/canvas/server/plugin.ts b/x-pack/legacy/plugins/canvas/server/plugin.ts index 1f17e85bfd294..713747551ff47 100644 --- a/x-pack/legacy/plugins/canvas/server/plugin.ts +++ b/x-pack/legacy/plugins/canvas/server/plugin.ts @@ -12,12 +12,6 @@ export class Plugin { public setup(core: CoreSetup, plugins: PluginsSetup) { plugins.interpreter.register({ serverFunctions: functions }); - core.injectUiAppVars('canvas', async () => { - return { - ...plugins.kibana.injectedUiAppVars, - }; - }); - plugins.features.registerFeature({ id: 'canvas', name: 'Canvas', diff --git a/x-pack/legacy/plugins/canvas/server/shim.ts b/x-pack/legacy/plugins/canvas/server/shim.ts index 1ca6e28bd347e..c9d70e6a721ee 100644 --- a/x-pack/legacy/plugins/canvas/server/shim.ts +++ b/x-pack/legacy/plugins/canvas/server/shim.ts @@ -18,7 +18,6 @@ export interface CoreSetup { http: { route: Legacy.Server['route']; }; - injectUiAppVars: Legacy.Server['injectUiAppVars']; } export interface PluginsSetup { @@ -52,7 +51,6 @@ export async function createSetupShim( ...server.newPlatform.setup.core.http, route: (...args) => server.route(...args), }, - injectUiAppVars: server.injectUiAppVars, }, pluginsSetup: { // @ts-ignore: New Platform not typed