From f31fbafd02f0dba5d03d295a84cd1a0a87cc671b Mon Sep 17 00:00:00 2001
From: Him188 <Him188@mamoe.net>
Date: Fri, 8 Jan 2021 09:51:42 +0800
Subject: [PATCH] [Review] MessageSelectBuilder: remove dark magics

---
 .../src/commonMain/kotlin/event/select.kt     | 36 +------------------
 1 file changed, 1 insertion(+), 35 deletions(-)

diff --git a/mirai-core-api/src/commonMain/kotlin/event/select.kt b/mirai-core-api/src/commonMain/kotlin/event/select.kt
index 55ff69c80..d96e7b715 100644
--- a/mirai-core-api/src/commonMain/kotlin/event/select.kt
+++ b/mirai-core-api/src/commonMain/kotlin/event/select.kt
@@ -1,5 +1,5 @@
 /*
- * Copyright 2019-2020 Mamoe Technologies and contributors.
+ * Copyright 2019-2021 Mamoe Technologies and contributors.
  *
  *  此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
  *  Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
@@ -149,22 +149,6 @@ public abstract class MessageSelectBuilder<M : MessageEvent, R> @PublishedApi in
     @Deprecated("Using `reply` DSL in message selection is prohibited", level = DeprecationLevel.HIDDEN)
     override infix fun MessageSelectionTimeoutChecker.reply(message: Message): Nothing = error("prohibited")
 
-    @JvmName("reply3")
-    @Suppress(
-        "INAPPLICABLE_JVM_NAME", "unused", "UNCHECKED_CAST",
-        "INVALID_CHARACTERS", "NAME_CONTAINS_ILLEGAL_CHARS", "FunctionName"
-    )
-    @Deprecated("Using `reply` DSL in message selection is prohibited", level = DeprecationLevel.HIDDEN)
-    override infix fun MessageSelectionTimeoutChecker.`->`(message: String): Nothing = error("prohibited")
-
-    @JvmName("reply3")
-    @Suppress(
-        "INAPPLICABLE_JVM_NAME", "unused", "UNCHECKED_CAST",
-        "INVALID_CHARACTERS", "NAME_CONTAINS_ILLEGAL_CHARS", "FunctionName"
-    )
-    @Deprecated("Using `reply` DSL in message selection is prohibited", level = DeprecationLevel.HIDDEN)
-    override infix fun MessageSelectionTimeoutChecker.`->`(message: Message): Nothing = error("prohibited")
-
     @Deprecated("Using `reply` DSL in message selection is prohibited", level = DeprecationLevel.HIDDEN)
     override infix fun MessageSelectionTimeoutChecker.quoteReply(block: suspend () -> Any?): Nothing =
         error("prohibited")
@@ -330,24 +314,6 @@ public abstract class MessageSelectBuilderUnit<M : MessageEvent, R> @PublishedAp
         }
     }
 
-    @JvmName("reply3")
-    @Suppress(
-        "INAPPLICABLE_JVM_NAME", "unused", "UNCHECKED_CAST",
-        "INVALID_CHARACTERS", "NAME_CONTAINS_ILLEGAL_CHARS", "FunctionName"
-    )
-    public open infix fun MessageSelectionTimeoutChecker.`->`(message: Message) {
-        return this.reply(message)
-    }
-
-    @JvmName("reply3")
-    @Suppress(
-        "INAPPLICABLE_JVM_NAME", "unused", "UNCHECKED_CAST",
-        "INVALID_CHARACTERS", "NAME_CONTAINS_ILLEGAL_CHARS", "FunctionName"
-    )
-    public open infix fun MessageSelectionTimeoutChecker.`->`(message: String) {
-        return this.reply(message)
-    }
-
     /**
      * 在超时后引用回复原消息
      *