From 4965986ea98879fbe0a2ca9bcf8dbeeeaebaa9ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 21 Jan 2023 23:25:14 +0100 Subject: [PATCH] =?utf8?q?=E2=9A=B0=EF=B8=8F=20Remove=20unused=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/net/pterodactylus/sone/web/NewElements.kt | 2 -- 1 file changed, 2 deletions(-) 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 } -- 2.7.4