From 38737a473a0dc35b334972547b63925c096386ea Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 27 Dec 2022 17:50:41 +0000 Subject: [PATCH] [mock] Remove `MockConsoleImplementation.createLogger` because it had been removed in its super class This commit fixes 7908edb57bbdbea59c2c183e963df9bdc2ebae23 --- .../test/testFramework/MockConsoleImplementation.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mirai-console/backend/mirai-console/test/testFramework/MockConsoleImplementation.kt b/mirai-console/backend/mirai-console/test/testFramework/MockConsoleImplementation.kt index 59d248135..ed4e1dd65 100644 --- a/mirai-console/backend/mirai-console/test/testFramework/MockConsoleImplementation.kt +++ b/mirai-console/backend/mirai-console/test/testFramework/MockConsoleImplementation.kt @@ -76,15 +76,6 @@ open class MockConsoleImplementation : MiraiConsoleImplementation { override fun createLoginSolver(requesterBot: Long, configuration: BotConfiguration): LoginSolver = LoginSolver.Default!! - @Suppress("DeprecatedCallableAddReplaceWith") - @Deprecated( - "Deprecated for removal. Implement the other overload, or use MiraiConsole.createLogger instead.", - level = DeprecationLevel.HIDDEN - ) - override fun createLogger(identity: String?): MiraiLogger { - return PlatformLogger(identity) - } - override fun createLoggerFactory(context: MiraiConsoleImplementation.FrontendLoggingInitContext): MiraiLogger.Factory { return object : MiraiLogger.Factory { override fun create(requester: Class<*>, identity: String?): MiraiLogger {