Commit 066ad395 authored by Him188's avatar Him188

Remove ambiguous functions on Android

parent 8eda9565
...@@ -12,7 +12,6 @@ package net.mamoe.mirai.utils ...@@ -12,7 +12,6 @@ package net.mamoe.mirai.utils
import kotlinx.io.core.IoBuffer import kotlinx.io.core.IoBuffer
import net.mamoe.mirai.Bot import net.mamoe.mirai.Bot
import net.mamoe.mirai.network.BotNetworkHandler import net.mamoe.mirai.network.BotNetworkHandler
import java.io.File
import kotlin.coroutines.CoroutineContext import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext import kotlin.coroutines.EmptyCoroutineContext
...@@ -87,18 +86,6 @@ actual open class BotConfiguration actual constructor() { ...@@ -87,18 +86,6 @@ actual open class BotConfiguration actual constructor() {
actual val Default = BotConfiguration() actual val Default = BotConfiguration()
} }
@Suppress("NOTHING_TO_INLINE")
@BotConfigurationDsl
inline operator fun FileBasedDeviceInfo.unaryPlus() {
deviceInfo = { File(filepath).loadAsDeviceInfo(it) }
}
@Suppress("NOTHING_TO_INLINE")
@BotConfigurationDsl
inline operator fun FileBasedDeviceInfo.ByDeviceDotJson.unaryPlus() {
deviceInfo = { File("device.json").loadAsDeviceInfo(it) }
}
actual operator fun _NoNetworkLog.unaryPlus() { actual operator fun _NoNetworkLog.unaryPlus() {
networkLoggerSupplier = supplier networkLoggerSupplier = supplier
} }
......
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