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