From d78d719caa3d48cff228ca4c4ea1c301aa33b12c Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Sun, 15 Dec 2019 15:15:27 +0800 Subject: [PATCH] Remove unnecessary inline --- .../network/protocol/tim/packet/event/MessageEvent.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt index fb8e9c447..93865ae78 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt @@ -92,11 +92,11 @@ abstract class MessagePacketBase<TSender : QQ, TSubject : Contact> : EventPacket suspend inline fun Image.download(): ByteReadPacket = getLink().download() // endregion - inline fun At.qq(): QQ = bot.getQQ(this.target) + fun At.qq(): QQ = bot.getQQ(this.target) - inline fun Int.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0).toUInt()) - inline fun Long.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0)) - inline fun UInt.qq(): QQ = bot.getQQ(this) + fun Int.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0).toUInt()) + fun Long.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0)) + fun UInt.qq(): QQ = bot.getQQ(this) suspend inline fun Int.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0).toUInt()) suspend inline fun Long.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0))