🔥 Remove unused methods
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 8 Feb 2020 23:57:57 +0000 (00:57 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 9 Feb 2020 00:14:31 +0000 (01:14 +0100)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 2a32241..edc3bab 100644 (file)
@@ -337,16 +337,6 @@ public class WebInterface implements SessionProvider {
                return from(allNewPosts).filter(postVisibilityFilter.isVisible(currentSone)).toSet();
        }
 
-       /**
-        * Returns the replies that have been announced as new in the
-        * {@link #newReplyNotification}.
-        *
-        * @return The new replies
-        */
-       public Set<PostReply> getNewReplies() {
-               return ImmutableSet.<PostReply> builder().addAll(newReplyNotification.getElements()).addAll(localReplyNotification.getElements()).build();
-       }
-
        @Nonnull
        public Collection<PostReply> getNewReplies(@Nullable Sone currentSone) {
                Set<PostReply> allNewReplies = ImmutableSet.<PostReply>builder()
@@ -357,20 +347,6 @@ public class WebInterface implements SessionProvider {
        }
 
        //
-       // PRIVATE ACCESSORS
-       //
-
-       /**
-        * Returns whether the first start notification is currently displayed.
-        *
-        * @return {@code true} if the first-start notification is currently
-        *         displayed, {@code false} otherwise
-        */
-       private boolean hasFirstStartNotification() {
-               return notificationManager.getNotification("first-start-notification") != null;
-       }
-
-       //
        // ACTIONS
        //