From 3be262ed12308938a8523118e4f909f4a88a07dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 7 Dec 2014 10:52:57 +0100 Subject: [PATCH] Remove setPosts() from Sone. --- src/main/java/net/pterodactylus/sone/data/Sone.java | 9 --------- .../java/net/pterodactylus/sone/data/impl/IdOnlySone.java | 5 ----- src/main/java/net/pterodactylus/sone/data/impl/SoneImpl.java | 11 ----------- 3 files changed, 25 deletions(-) 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. * -- 2.7.4