Browse Source

remove destroy

master
peter 6 years ago
parent
commit
1d49ebb914
1 changed files with 0 additions and 11 deletions
  1. 0
    11
      src/backend/PluginLoader.ts

+ 0
- 11
src/backend/PluginLoader.ts View File

23
         if(force || !status.remote || !status.remote.includes("fb-dist/admin") || !status.exists || status.empty || !status.currentTag){
23
         if(force || !status.remote || !status.remote.includes("fb-dist/admin") || !status.exists || status.empty || !status.currentTag){
24
             //logger.warn("Cloning fb-dist/admin into ./dist ..."+(force?" USING FORCE!":""))
24
             //logger.warn("Cloning fb-dist/admin into ./dist ..."+(force?" USING FORCE!":""))
25
             status = await updater.cloneRepo(force)
25
             status = await updater.cloneRepo(force)
26
-
27
-            this.destroy()
28
             const installer = eval("require")("./Installer").installAdmin
26
             const installer = eval("require")("./Installer").installAdmin
29
             installer(this.getPlugins())
27
             installer(this.getPlugins())
30
         }
28
         }
125
     getPlugins():Plugin[]{
123
     getPlugins():Plugin[]{
126
         return [...this.runningPlugins]
124
         return [...this.runningPlugins]
127
     }
125
     }
128
-
129
-    async destroy(){
130
-        return
131
-    }
132
-
133
 }
126
 }
134
 
127
 
135
 
128
 
141
         setPluginVersion: (name:string, tag:string) => Promise<FolderStatus>
134
         setPluginVersion: (name:string, tag:string) => Promise<FolderStatus>
142
         getLoadedPluginNames: () => Promise<String[]>
135
         getLoadedPluginNames: () => Promise<String[]>
143
         selfUpdate: (force:boolean) => Promise<FolderStatus>
136
         selfUpdate: (force:boolean) => Promise<FolderStatus>
144
-        destroy: () => Promise<void> 
145
     }
137
     }
146
 }
138
 }
147
 
139
 
170
         },{
162
         },{
171
             name: "selfUpdate" as "selfUpdate",
163
             name: "selfUpdate" as "selfUpdate",
172
             call: async (force: boolean) => {return await this.selfUpdate(force)},
164
             call: async (force: boolean) => {return await this.selfUpdate(force)},
173
-        },{
174
-            name: "destroy" as "destroy",
175
-            call: async () => {return this.destroy()}
176
         }]
165
         }]
177
     }
166
     }
178
 }
167
 }

Loading…
Cancel
Save