From 2634794177308a24fd806a9da1df16caff1a639e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 15 Oct 2013 19:06:47 +0200 Subject: [PATCH] Remove copy method from post builder. --- .../pterodactylus/sone/data/impl/AbstractPostBuilder.java | 14 -------------- .../java/net/pterodactylus/sone/database/PostBuilder.java | 11 ----------- 2 files changed, 25 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java b/src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java index ad580ee..22f98db 100644 --- a/src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java +++ b/src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java @@ -68,20 +68,6 @@ public abstract class AbstractPostBuilder implements PostBuilder { * {@inheritDoc} */ @Override - public PostBuilder copyPost(Post post) { - this.randomId = false; - this.id = post.getId(); - this.currentTime = false; - this.time = post.getTime(); - this.text = post.getText(); - this.recipientId = post.getRecipientId().orNull(); - return this; - } - - /** - * {@inheritDoc} - */ - @Override public PostBuilder randomId() { randomId = true; return this; diff --git a/src/main/java/net/pterodactylus/sone/database/PostBuilder.java b/src/main/java/net/pterodactylus/sone/database/PostBuilder.java index c46bd69..0563fed 100644 --- a/src/main/java/net/pterodactylus/sone/database/PostBuilder.java +++ b/src/main/java/net/pterodactylus/sone/database/PostBuilder.java @@ -43,17 +43,6 @@ import net.pterodactylus.sone.data.Sone; public interface PostBuilder { /** - * Copies all attributes of the given post to this post builder. - * - * @param post - * The post whose attributes to copy into this builder - * @return This builder - * @throws NullPointerException - * if {@code post} is {@code null} - */ - public PostBuilder copyPost(Post post) throws NullPointerException; - - /** * Configures this builder to use a random ID for the new post. If this * method is used, {@link #withId(String)} must not be used. * -- 2.7.4