delete dropConfig

This commit is contained in:
Karlatemp 2020-10-28 18:11:00 +08:00
parent 73463554b8
commit 6d15c3b301
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -26,11 +26,6 @@ internal object ConsoleDataScope : CoroutineScope by MiraiConsole.childScope("Co
ConsoleBuiltInPluginConfigStorage.load(ConsoleBuiltInPluginConfigHolder, config)
}
fun dropConfig(config: PluginConfig) {
configs.remove(config)
(config as? AutoSavePluginConfig)?.destroy()
}
fun reloadAll() {
data.forEach { dt ->
ConsoleBuiltInPluginDataStorage.load(ConsoleBuiltInPluginDataHolder, dt)