mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 23:10:12 +08:00
[core] Remove legacy Kotlin Native annotations
This commit is contained in:
parent
ab5d08afb1
commit
f0fa6a7979
@ -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)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user