From: David ‘Bombe’ Roden Date: Sun, 7 Dec 2014 09:52:57 +0000 (+0100) Subject: Remove setPosts() from Sone. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3be262ed12308938a8523118e4f909f4a88a07dc;p=Sone.git Remove setPosts() from Sone. --- diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index 4bde55b..2f529cb 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -343,15 +343,6 @@ public interface Sone extends Identified, Fingerprintable, Comparable { List getPosts(); /** - * Sets all posts of this Sone at once. - * - * @param posts - * The new (and only) posts of this Sone - * @return This Sone (for method chaining) - */ - Sone setPosts(Collection posts); - - /** * Adds the given post to this Sone. The post will not be added if its {@link * Post#getSone() Sone} is not this Sone. * diff --git a/src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java b/src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java index 6352c10..ce224fd 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/IdOnlySone.java @@ -121,11 +121,6 @@ public class IdOnlySone implements Sone { } @Override - public Sone setPosts(Collection posts) { - return this; - } - - @Override public void addPost(Post post) { } diff --git a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java index 2479276..eb2fc6e 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java @@ -363,17 +363,6 @@ public class SoneImpl implements LocalSone { } /** - * Sets all posts of this Sone at once. - * - * @param posts - * The new (and only) posts of this Sone - * @return This Sone (for method chaining) - */ - public Sone setPosts(Collection posts) { - return this; - } - - /** * Adds the given post to this Sone. The post will not be added if its {@link * Post#getSone() Sone} is not this Sone. *