X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FWebOfTrustHandler.kt;h=900a88544a033913afe2279115a52aef97f553c3;hp=924d3956d8cab6e3bbaa030aa33cdce85c2a6c68;hb=438378deab1514f0f608d975ef65f5b7aea44ccb;hpb=2ec60e8d6d2efadd7b4d35de3c3d257a0bc5f190 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt index 924d395..900a885 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/WebOfTrustHandler.kt @@ -1,5 +1,5 @@ /** - * Sone - WebOfTrustHandler.kt - Copyright © 2019 David ‘Bombe’ Roden + * Sone - WebOfTrustHandler.kt - Copyright © 2019–2020 David ‘Bombe’ Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,12 +29,12 @@ import javax.inject.* class WebOfTrustHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("webOfTrust") private val notification: TemplateNotification) { @Subscribe - fun webOfTrustAppeared(webOfTrustAppeared: WebOfTrustAppeared) { + fun webOfTrustAppeared(@Suppress("UNUSED_PARAMETER") webOfTrustAppeared: WebOfTrustAppeared) { notificationManager.removeNotification(notification) } @Subscribe - fun webOfTrustDisappeared(webOfTrustDisappeared: WebOfTrustDisappeared) { + fun webOfTrustDisappeared(@Suppress("UNUSED_PARAMETER") webOfTrustDisappeared: WebOfTrustDisappeared) { notificationManager.addNotification(notification) }