From 1d49ebb914326254b3e069082e972728b63aacac Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 30 Oct 2019 19:08:59 +0100 Subject: [PATCH] remove destroy --- src/backend/PluginLoader.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/backend/PluginLoader.ts b/src/backend/PluginLoader.ts index c560c1d..3991cee 100644 --- a/src/backend/PluginLoader.ts +++ b/src/backend/PluginLoader.ts @@ -23,8 +23,6 @@ class PluginLoader { if(force || !status.remote || !status.remote.includes("fb-dist/admin") || !status.exists || status.empty || !status.currentTag){ //logger.warn("Cloning fb-dist/admin into ./dist ..."+(force?" USING FORCE!":"")) status = await updater.cloneRepo(force) - - this.destroy() const installer = eval("require")("./Installer").installAdmin installer(this.getPlugins()) } @@ -125,11 +123,6 @@ class PluginLoader { getPlugins():Plugin[]{ return [...this.runningPlugins] } - - async destroy(){ - return - } - } @@ -141,7 +134,6 @@ export type PluginLoaderIfc = { setPluginVersion: (name:string, tag:string) => Promise getLoadedPluginNames: () => Promise selfUpdate: (force:boolean) => Promise - destroy: () => Promise } } @@ -170,9 +162,6 @@ implements RPCExporter{ },{ name: "selfUpdate" as "selfUpdate", call: async (force: boolean) => {return await this.selfUpdate(force)}, - },{ - name: "destroy" as "destroy", - call: async () => {return this.destroy()} }] } } \ No newline at end of file