From e4a499b957b9cca0df99479875fde756bad6cbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 12 Nov 2021 10:35:39 +0100 Subject: [PATCH] AppPlugins: Remove unused angular plugin page files (#41569) * AppPlugins: Remove unused angular plugin page files * Remove more unused bits --- packages/grafana-data/src/types/app.ts | 9 --- public/app/features/plugins/all.ts | 1 - .../plugins/partials/plugin_page.html | 12 ---- .../app/features/plugins/plugin_component.ts | 17 ----- .../app/features/plugins/plugin_page_ctrl.ts | 62 ------------------- public/app/routes/routes.tsx | 7 --- 6 files changed, 108 deletions(-) delete mode 100644 public/app/features/plugins/partials/plugin_page.html delete mode 100644 public/app/features/plugins/plugin_page_ctrl.ts diff --git a/packages/grafana-data/src/types/app.ts b/packages/grafana-data/src/types/app.ts index 252393230fa..d0617adeaa2 100644 --- a/packages/grafana-data/src/types/app.ts +++ b/packages/grafana-data/src/types/app.ts @@ -50,9 +50,6 @@ export class AppPlugin extends GrafanaPlugin> { root?: ComponentClass>; rootNav?: NavModel; // Initial navigation model - // Old style pages - angularPages?: { [component: string]: any }; - /** * Called after the module has loaded, and before the app is used. * This function may be called multiple times on the same instance. @@ -88,12 +85,6 @@ export class AppPlugin extends GrafanaPlugin> { console.warn('App Page uses unknown component: ', include.component, this.meta); continue; } - - if (!this.angularPages) { - this.angularPages = {}; - } - - this.angularPages[include.component] = exp; } } } diff --git a/public/app/features/plugins/all.ts b/public/app/features/plugins/all.ts index 6ed79e3aafb..9776a8e0b93 100644 --- a/public/app/features/plugins/all.ts +++ b/public/app/features/plugins/all.ts @@ -1,4 +1,3 @@ -import './plugin_page_ctrl'; import './datasource_srv'; import './plugin_component'; import './variableQueryEditorLoader'; diff --git a/public/app/features/plugins/partials/plugin_page.html b/public/app/features/plugins/partials/plugin_page.html deleted file mode 100644 index 5a72a699fc9..00000000000 --- a/public/app/features/plugins/partials/plugin_page.html +++ /dev/null @@ -1,12 +0,0 @@ -
- - -
-
- - -
-
-
- -