Remove unused code.
[Sone.git] / src / main / java / net / pterodactylus / sone / freenet / wot / WebOfTrustConnector.java
index 07628e3..7ce1ede 100644 (file)
@@ -77,13 +77,6 @@ public class WebOfTrustConnector {
        //
 
        /**
-        * Stops the web of trust connector.
-        */
-       public void stop() {
-               /* does nothing. */
-       }
-
-       /**
         * Loads all own identities from the Web of Trust plugin.
         *
         * @return All own identity
@@ -113,20 +106,6 @@ public class WebOfTrustConnector {
 
        /**
         * Loads all identities that the given identities trusts with a score of
-        * more than 0.
-        *
-        * @param ownIdentity
-        *            The own identity
-        * @return All trusted identities
-        * @throws PluginException
-        *             if an error occured talking to the Web of Trust plugin
-        */
-       public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity) throws PluginException {
-               return loadTrustedIdentities(ownIdentity, null);
-       }
-
-       /**
-        * Loads all identities that the given identities trusts with a score of
         * more than 0 and the (optional) given context.
         *
         * @param ownIdentity
@@ -432,7 +411,6 @@ public class WebOfTrustConnector {
                logger.log(Level.FINEST, String.format("Received Reply from Plugin: %s", receivedReplyEvent.fieldSet().get("Message")));
                synchronized (reply) {
                        reply.setFields(receivedReplyEvent.fieldSet());
-                       reply.setData(receivedReplyEvent.data());
                        reply.notify();
                }
        }
@@ -447,9 +425,6 @@ public class WebOfTrustConnector {
                /** The fields of the reply. */
                private SimpleFieldSet fields;
 
-               /** The payload of the reply. */
-               private Bucket data;
-
                /** Empty constructor. */
                public Reply() {
                        /* do nothing. */
@@ -474,26 +449,6 @@ public class WebOfTrustConnector {
                        this.fields = fields;
                }
 
-               /**
-                * Returns the payload of the reply.
-                *
-                * @return The payload of the reply (may be {@code null})
-                */
-               @SuppressWarnings("unused")
-               public Bucket getData() {
-                       return data;
-               }
-
-               /**
-                * Sets the payload of the reply.
-                *
-                * @param data
-                *            The payload of the reply (may be {@code null})
-                */
-               public void setData(Bucket data) {
-                       this.data = data;
-               }
-
        }
 
        /**