X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fplugin%2FPluginConnector.java;h=322b0d32742f18fc99c23b133be96040bb077fb7;hb=2ff7fd6b411a079c8c8a52eee90cafeb14630ae8;hp=47330e8b13191444f7242f6e17ff24ccf131171d;hpb=99888ce13cc17d49f5e217ab6f2c9ad5ef168792;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java b/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java index 47330e8..322b0d3 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/plugin/PluginConnector.java @@ -19,9 +19,6 @@ package net.pterodactylus.sone.freenet.plugin; import net.pterodactylus.sone.freenet.plugin.event.ReceivedReplyEvent; -import com.google.common.eventbus.EventBus; -import com.google.inject.Inject; - import freenet.pluginmanager.FredPluginTalker; import freenet.pluginmanager.PluginNotFoundException; import freenet.pluginmanager.PluginRespirator; @@ -29,6 +26,9 @@ import freenet.pluginmanager.PluginTalker; import freenet.support.SimpleFieldSet; import freenet.support.api.Bucket; +import com.google.common.eventbus.EventBus; +import com.google.inject.Inject; + /** * Interface for talking to other plugins. Other plugins are identified by their * name and a unique connection identifier. @@ -70,22 +70,6 @@ public class PluginConnector implements FredPluginTalker { * The identifier of the connection * @param fields * The fields of the message - * @throws PluginException - * if the plugin can not be found - */ - public void sendRequest(String pluginName, String identifier, SimpleFieldSet fields) throws PluginException { - sendRequest(pluginName, identifier, fields, null); - } - - /** - * Sends a request to the given plugin. - * - * @param pluginName - * The name of the plugin - * @param identifier - * The identifier of the connection - * @param fields - * The fields of the message * @param data * The payload of the message (may be null) * @throws PluginException @@ -122,9 +106,6 @@ public class PluginConnector implements FredPluginTalker { // INTERFACE FredPluginTalker // - /** - * {@inheritDoc} - */ @Override public void onReply(String pluginName, String identifier, SimpleFieldSet params, Bucket data) { eventBus.post(new ReceivedReplyEvent(this, pluginName, identifier, params, data));