From: David ‘Bombe’ Roden Date: Tue, 15 Oct 2013 17:06:47 +0000 (+0200) Subject: Remove copy method from post builder. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2634794177308a24fd806a9da1df16caff1a639e;p=Sone.git Remove copy method from post builder. --- 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. *