From 51bc501f9587a8acb6253fe4ad84f3069f52e191 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 1 Nov 2019 22:57:57 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=94=A5=20Remove=20bucket=20parameter?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt index 78eb036..96b906b 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/PluginWebOfTrustConnector.kt @@ -19,7 +19,6 @@ package net.pterodactylus.sone.freenet.wot import com.google.inject.* import freenet.support.* -import freenet.support.api.* import net.pterodactylus.sone.freenet.* import net.pterodactylus.sone.freenet.plugin.* import net.pterodactylus.sone.utils.NumberParsers.* @@ -132,9 +131,9 @@ class PluginWebOfTrustConnector @Inject constructor(private val pluginConnector: performRequest(SimpleFieldSetBuilder().put("Message", "Ping").get()) } - private fun performRequest(fields: SimpleFieldSet, data: Bucket? = null): PluginReply { + private fun performRequest(fields: SimpleFieldSet): PluginReply { logger.log(Level.FINE, format("Sending FCP Request: %s", fields.get("Message"))) - val pluginReply = pluginConnector.sendRequest(WOT_PLUGIN_NAME, "", fields, data) + val pluginReply = pluginConnector.sendRequest(WOT_PLUGIN_NAME, "", fields) logger.log(Level.FINEST, format("Received FCP Response for %s: %s", fields.get("Message"), pluginReply.fields.get("Message"))) if ("Error" == pluginReply.fields.get("Message")) { throw PluginException("Could not perform request for " + fields.get("Message")) -- 2.7.4