From: David ‘Bombe’ Roden Date: Sat, 21 Jan 2023 22:25:14 +0000 (+0100) Subject: ⚰️ Remove unused code X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4965986ea98879fbe0a2ca9bcf8dbeeeaebaa9ef;p=Sone.git ⚰️ Remove unused code --- diff --git a/src/main/kotlin/net/pterodactylus/sone/web/NewElements.kt b/src/main/kotlin/net/pterodactylus/sone/web/NewElements.kt index 1026f36..6799ada 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/NewElements.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/NewElements.kt @@ -48,5 +48,3 @@ class NewElements @Inject constructor( .flatMap(ListNotification::elements) .filter { replyVisibilityFilter.isReplyVisible(null, it) } } - -private fun Collection<*>.cast(): List = map { it as R }