Remove unnecessary modifiers
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Feb 2019 23:07:34 +0000 (00:07 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Feb 2019 23:07:34 +0000 (00:07 +0100)
src/main/kotlin/net/pterodactylus/sone/web/pages/LoginPage.kt
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewPostPage.kt
src/main/kotlin/net/pterodactylus/sone/web/pages/ViewSonePage.kt

index 37b1107..c6c50bb 100644 (file)
@@ -29,7 +29,7 @@ class LoginPage @Inject constructor(template: Template, webInterface: WebInterfa
                templateContext["identitiesWithoutSone"] = webInterface.core.identityManager.allOwnIdentities.filterNot { "Sone" in it.contexts }.sortedBy { "${it.nickname}@${it.id}" }
        }
 
-       override public fun getRedirectTarget(freenetRequest: FreenetRequest) =
+       override fun getRedirectTarget(freenetRequest: FreenetRequest) =
                        getCurrentSone(freenetRequest.toadletContext)?.let { "index.html" }
 
        override fun isEnabled(toadletContext: ToadletContext) = when {
index 763fc99..0856e86 100644 (file)
@@ -23,7 +23,7 @@ class ViewPostPage @Inject constructor(template: Template, webInterface: WebInte
 
        override fun isLinkExcepted(link: URI?) = true
 
-       public override fun getPageTitle(freenetRequest: FreenetRequest) =
+       override fun getPageTitle(freenetRequest: FreenetRequest) =
                        (freenetRequest.parameters["post"]?.let(webInterface.core::getPost)?.let {
                                if (it.text.length > 20) {
                                        it.text.substring(0..19) + "…"
index ef0d3f5..145be72 100644 (file)
@@ -50,7 +50,7 @@ class ViewSonePage @Inject constructor(template: Template, webInterface: WebInte
 
        override fun isLinkExcepted(link: URI?) = true
 
-       public override fun getPageTitle(freenetRequest: FreenetRequest): String =
+       override fun getPageTitle(freenetRequest: FreenetRequest): String =
                        freenetRequest.parameters["sone"]!!.let(webInterface.core::getSone)?.let { sone ->
                                "${SoneAccessor.getNiceName(sone)} - ${webInterface.l10n.getString("Page.ViewSone.Title")}"
                        } ?: webInterface.l10n.getString("Page.ViewSone.Page.TitleWithoutSone")