Skip to content

Commit

Permalink
cleanup unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
paulchen committed Mar 8, 2023
1 parent d691ffb commit 90bd037
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,4 @@ class RoomMessageStreamHandler(eventHandler: EventHandler, botConfiguration: Bot

return false
}

private fun getTimestamp(jsonNode: JsonNode): Long {
val dateNode = jsonNode.get("fields")?.get("args")?.get(0)?.get("ts")?.get("\$date") ?: return 0L
if (dateNode.isLong) {
return dateNode.asLong()
}
return 0L
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package at.rueckgr.kotlin.rocketbot.util

import at.rueckgr.kotlin.rocketbot.Bot
import at.rueckgr.kotlin.rocketbot.BotConfiguration
import com.fasterxml.jackson.databind.DeserializationFeature
import io.ktor.client.*
import io.ktor.client.call.*
Expand Down

0 comments on commit 90bd037

Please sign in to comment.