Commit 770b137a authored by Him188's avatar Him188

Remove useless functions

parent 9ea86c13
......@@ -240,8 +240,6 @@ class MessageSubscribersBuilder<T : SenderAndMessage<*>>(
suspend fun content(filter: T.(String) -> Boolean, onEvent: @MessageDsl suspend T.(String) -> Unit) =
subscriber { if (this.filter(message.stringValue)) onEvent(this) }
suspend infix fun String.caseReply(replier: String) = case(this, true) { this@case.reply(replier) }
suspend infix fun String.caseReply(replier: StringReplier<T>) = case(this, true) { this@case.reply(replier(this)) }
suspend infix fun String.containsReply(replier: String) =
content({ this@containsReply in it }) { this@content.reply(replier) }
......
......@@ -2,7 +2,6 @@
package net.mamoe.mirai.demo
import android.annotation.SuppressLint
import android.app.Application
import android.os.Bundle
import android.widget.LinearLayout
......@@ -27,7 +26,6 @@ class MyApplication : Application()
class MainActivity : AppCompatActivity() {
private var rootLayout: LinearLayout by Delegates.notNull()
@SuppressLint("SetTextI18n")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment