Remove copy method from post builder.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 15 Oct 2013 17:06:47 +0000 (19:06 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:26 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/data/impl/AbstractPostBuilder.java
src/main/java/net/pterodactylus/sone/database/PostBuilder.java

index ad580ee..22f98db 100644 (file)
@@ -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;
index c46bd69..0563fed 100644 (file)
@@ -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.
         *