Skip to content

Commit

Permalink
[core] Remove legacy Kotlin Native annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Sep 2, 2023
1 parent ab5d08a commit f0fa6a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -117,5 +116,4 @@ internal class PacketLoggingStrategyImpl(
}


@SharedImmutable
private val SHOW_PACKET_DETAILS = systemProp("mirai.network.show.packet.details", false)
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -73,7 +72,6 @@ internal class LoggingStateObserver(
)
}

@ThreadLocal
companion object {
/**
* - `on`/`true` for simple logging
Expand Down

0 comments on commit f0fa6a7

Please sign in to comment.