Skip to content

Commit 4f43cbd

Browse files
authored
Merge pull request #3802 from illume/remove-old-load
frontend: plugin: Remove loadDevPlugins because unused for years
2 parents f25c3d4 + 959b267 commit 4f43cbd

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

frontend/src/plugin/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,10 @@ window.pluginLib.MuiCore = window.pluginLib.MuiMaterial;
104104
// @todo: Should all the plugin objects be in a single window.Headlamp object?
105105
window.plugins = {};
106106

107-
/**
108-
* Load plugins in the frontend/src/plugin/plugins/ folder.
109-
*
110-
* Plugins can be developed inside the headlamp repo.
111-
* Move them out of the repo to an external location when they are ready.
112-
*
113-
* @see Plugin
114-
*/
115-
function loadDevPlugins() {
116-
import.meta.glob(['./plugins/*.index.{js,ts,tsx}'], { eager: true });
117-
}
118-
119107
/**
120108
* Load external, then local plugins. Then initialize() them in order with a Registry.
121109
*/
122110
export async function initializePlugins() {
123-
await loadDevPlugins();
124-
125111
// Initialize every plugin in the order they were loaded.
126112
return new Promise(resolve => {
127113
for (const pluginName of Object.keys(window.plugins)) {

0 commit comments

Comments
 (0)