Skip to content

Commit f0fa6a7

Browse files
committed
[core] Remove legacy Kotlin Native annotations
1 parent ab5d08a commit f0fa6a7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

mirai-core/src/commonMain/kotlin/network/components/PacketLoggingStrategy.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import net.mamoe.mirai.utils.MiraiLogger
2424
import net.mamoe.mirai.utils.systemProp
2525
import net.mamoe.mirai.utils.verbose
2626
import kotlin.coroutines.cancellation.CancellationException
27-
import kotlin.native.concurrent.SharedImmutable
2827

2928
/**
3029
* Implementation must be fast and non-blocking, throwing no exception.
@@ -117,5 +116,4 @@ internal class PacketLoggingStrategyImpl(
117116
}
118117

119118

120-
@SharedImmutable
121119
private val SHOW_PACKET_DETAILS = systemProp("mirai.network.show.packet.details", false)

mirai-core/src/commonMain/kotlin/network/handler/state/LoggingStateObserver.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import net.mamoe.mirai.internal.network.handler.NetworkHandler
1313
import net.mamoe.mirai.internal.network.handler.NetworkHandlerSupport
1414
import net.mamoe.mirai.utils.*
1515
import kotlin.coroutines.coroutineContext
16-
import kotlin.native.concurrent.ThreadLocal
1716

1817
internal class LoggingStateObserver(
1918
val logger: MiraiLogger,
@@ -73,7 +72,6 @@ internal class LoggingStateObserver(
7372
)
7473
}
7574

76-
@ThreadLocal
7775
companion object {
7876
/**
7977
* - `on`/`true` for simple logging

0 commit comments

Comments
 (0)