Remove unused code.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 11 Nov 2013 18:26:15 +0000 (19:26 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:59 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java
src/main/java/net/pterodactylus/sone/main/SonePlugin.java

index a109136..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
@@ -418,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();
                }
        }
@@ -433,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. */
@@ -460,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;
-               }
-
        }
 
        /**
index 94e5030..ef7f750 100644 (file)
@@ -283,9 +283,6 @@ public class SonePlugin implements FredPlugin, FredPluginFCP, FredPluginL10n, Fr
 
                        /* stop the core. */
                        core.stop();
-
-                       /* stop the web of trust connector. */
-                       webOfTrustConnector.stop();
                } catch (Throwable t1) {
                        logger.log(Level.SEVERE, "Error while shutting down!", t1);
                } finally {