mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 22:00:10 +08:00
Remove redundant properties
This commit is contained in:
parent
361304b9f2
commit
e58db121dc
@ -9,8 +9,6 @@
|
||||
|
||||
package net.mamoe.mirai.internal.network.components
|
||||
|
||||
import kotlinx.coroutines.CoroutineName
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import net.mamoe.mirai.event.BroadcastControllable
|
||||
import net.mamoe.mirai.event.CancellableEvent
|
||||
import net.mamoe.mirai.event.Event
|
||||
@ -63,9 +61,7 @@ internal class LoggingPacketHandlerAdapter(
|
||||
}
|
||||
|
||||
internal class EventBroadcasterPacketHandler(
|
||||
private val targetScope: CoroutineScope,
|
||||
private val components: ComponentStorage,
|
||||
private val logger: MiraiLogger,
|
||||
) : PacketHandler {
|
||||
|
||||
override suspend fun handlePacket(incomingPacket: IncomingPacket) {
|
||||
@ -73,7 +69,6 @@ internal class EventBroadcasterPacketHandler(
|
||||
impl(data)
|
||||
}
|
||||
|
||||
private val coroutineName = CoroutineName("Mirai-EventDispatcher-${logger.identity}")
|
||||
private fun impl(packet: Packet) {
|
||||
if (packet is MultiPacket<*>) {
|
||||
for (p in packet) {
|
||||
|
Loading…
Reference in New Issue
Block a user