From f0fa6a7979e049fa3dcb5dc9869c04442a77fce3 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 2 Sep 2023 11:24:01 +0800 Subject: [PATCH] [core] Remove legacy Kotlin Native annotations --- .../kotlin/network/components/PacketLoggingStrategy.kt | 2 -- .../kotlin/network/handler/state/LoggingStateObserver.kt | 2 -- 2 files changed, 4 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/network/components/PacketLoggingStrategy.kt b/mirai-core/src/commonMain/kotlin/network/components/PacketLoggingStrategy.kt index b8625d5c3f..1c84ce97ca 100644 --- a/mirai-core/src/commonMain/kotlin/network/components/PacketLoggingStrategy.kt +++ b/mirai-core/src/commonMain/kotlin/network/components/PacketLoggingStrategy.kt @@ -24,7 +24,6 @@ import net.mamoe.mirai.utils.MiraiLogger import net.mamoe.mirai.utils.systemProp import net.mamoe.mirai.utils.verbose import kotlin.coroutines.cancellation.CancellationException -import kotlin.native.concurrent.SharedImmutable /** * Implementation must be fast and non-blocking, throwing no exception. @@ -117,5 +116,4 @@ internal class PacketLoggingStrategyImpl( } -@SharedImmutable private val SHOW_PACKET_DETAILS = systemProp("mirai.network.show.packet.details", false) \ No newline at end of file diff --git a/mirai-core/src/commonMain/kotlin/network/handler/state/LoggingStateObserver.kt b/mirai-core/src/commonMain/kotlin/network/handler/state/LoggingStateObserver.kt index e64ebc758b..d5a10de7c5 100644 --- a/mirai-core/src/commonMain/kotlin/network/handler/state/LoggingStateObserver.kt +++ b/mirai-core/src/commonMain/kotlin/network/handler/state/LoggingStateObserver.kt @@ -13,7 +13,6 @@ import net.mamoe.mirai.internal.network.handler.NetworkHandler import net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport import net.mamoe.mirai.utils.* import kotlin.coroutines.coroutineContext -import kotlin.native.concurrent.ThreadLocal internal class LoggingStateObserver( val logger: MiraiLogger, @@ -73,7 +72,6 @@ internal class LoggingStateObserver( ) } - @ThreadLocal companion object { /** * - `on`/`true` for simple logging