From: David ‘Bombe’ Roden Date: Sun, 28 Jun 2020 22:11:12 +0000 (+0200) Subject: 🎨 Clean up imports X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=891d9a46b2254a92a06e38e67b2fa33085e528b0;p=Sone.git 🎨 Clean up imports --- diff --git a/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java b/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java index ec99cbe..a447108 100644 --- a/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java +++ b/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java @@ -1,7 +1,5 @@ package net.pterodactylus.sone.notify; -import java.util.function.Predicate; - import static com.google.common.base.Preconditions.checkNotNull; import javax.annotation.Nonnull; diff --git a/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt b/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt index 86d1316..67546c5 100644 --- a/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt +++ b/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt @@ -17,7 +17,8 @@ package net.pterodactylus.sone.notify -import net.pterodactylus.util.notify.* +import net.pterodactylus.util.notify.Notification +import net.pterodactylus.util.notify.NotificationManager /** * Returns whether the notification manager contains a notification with the given ID. diff --git a/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt b/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt index 9230862..36b6f89 100644 --- a/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt @@ -3,7 +3,6 @@ package net.pterodactylus.sone.notify import com.google.inject.ImplementedBy import net.pterodactylus.sone.data.Post import net.pterodactylus.sone.data.Sone -import java.util.function.Predicate @ImplementedBy(DefaultPostVisibilityFilter::class) interface PostVisibilityFilter { diff --git a/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt b/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt index 785386a..e8a48cb 100644 --- a/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt @@ -3,7 +3,6 @@ package net.pterodactylus.sone.notify import com.google.inject.ImplementedBy import net.pterodactylus.sone.data.PostReply import net.pterodactylus.sone.data.Sone -import java.util.function.Predicate @ImplementedBy(DefaultReplyVisibilityFilter::class) interface ReplyVisibilityFilter { diff --git a/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt b/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt index e7103c6..20065f3 100644 --- a/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt +++ b/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt @@ -3,7 +3,6 @@ package net.pterodactylus.sone.notify import net.pterodactylus.sone.data.Post import net.pterodactylus.sone.data.PostReply import net.pterodactylus.sone.data.Sone -import java.util.function.Predicate fun matchThisPost(post: Post) = createPostVisibilityFilter { _, p -> p == post } val showAllPosts = createPostVisibilityFilter { _, _ -> true }