mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-06 17:10:48 +08:00
Remove ambiguous functions on Android
This commit is contained in:
parent
8eda95659c
commit
066ad39561
@ -12,7 +12,6 @@ package net.mamoe.mirai.utils
|
||||
import kotlinx.io.core.IoBuffer
|
||||
import net.mamoe.mirai.Bot
|
||||
import net.mamoe.mirai.network.BotNetworkHandler
|
||||
import java.io.File
|
||||
import kotlin.coroutines.CoroutineContext
|
||||
import kotlin.coroutines.EmptyCoroutineContext
|
||||
|
||||
@ -87,18 +86,6 @@ actual open class BotConfiguration actual constructor() {
|
||||
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() {
|
||||
networkLoggerSupplier = supplier
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user