Remove meaningless @Synchronized

This commit is contained in:
Him188 2019-10-09 17:48:47 +08:00
parent 39793164b6
commit db6f74a07d

View File

@ -55,7 +55,6 @@ open class Console(
}
}
@Synchronized
fun print(value: String?, color: LoggerTextFormat = LoggerTextFormat.YELLOW) {
val s = SimpleDateFormat("MM-dd HH:mm:ss").format(Date())
@ -85,13 +84,11 @@ fun Bot.debugPacket(packet: ServerPacket) {
}
@Synchronized
private fun print(bot: Bot, value: String?, color: LoggerTextFormat = LoggerTextFormat.WHITE) {
val s = SimpleDateFormat("MM-dd HH:mm:ss").format(Date())
kotlin.io.println("$color[Mirai] $s #R${bot.id}: $value")
}
@Synchronized
private fun print(value: String?, color: LoggerTextFormat = LoggerTextFormat.WHITE) {
val s = SimpleDateFormat("MM-dd HH:mm:ss").format(Date())
kotlin.io.println("$color[Mirai] $s : $value")