From 6d15c3b3015c1a02ef643de32f7a14e5959e2c04 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Wed, 28 Oct 2020 18:11:00 +0800 Subject: [PATCH] delete dropConfig --- .../mirai/console/internal/data/builtins/ConsoleDataScope.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/builtins/ConsoleDataScope.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/builtins/ConsoleDataScope.kt index 95c0d9a8f..ab5c122c6 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/builtins/ConsoleDataScope.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/internal/data/builtins/ConsoleDataScope.kt @@ -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)