remove destroy

This commit is contained in:
peter
2019-10-30 19:08:59 +01:00
parent 9efbf54908
commit 1d49ebb914
-11
View File
@@ -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<FolderStatus>
getLoadedPluginNames: () => Promise<String[]>
selfUpdate: (force:boolean) => Promise<FolderStatus>
destroy: () => Promise<void>
}
}
@@ -170,9 +162,6 @@ implements RPCExporter<PluginLoaderIfc, "PluginLoader">{
},{
name: "selfUpdate" as "selfUpdate",
call: async (force: boolean) => {return await this.selfUpdate(force)},
},{
name: "destroy" as "destroy",
call: async () => {return this.destroy()}
}]
}
}