From: David ‘Bombe’ Roden Date: Thu, 5 Oct 2017 05:02:17 +0000 (+0200) Subject: Don’t extend FreenetPage, we don’t need the isLinkExcepted() method in the JSON pages X-Git-Tag: 0.9.7^2~28 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b62d273fccff37ea66c7160525c0ab6f99842e24;p=Sone.git Don’t extend FreenetPage, we don’t need the isLinkExcepted() method in the JSON pages --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java index 21f44d2..9583437 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/JsonPage.java @@ -23,7 +23,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; -import java.net.URI; import java.util.logging.Level; import java.util.logging.Logger; @@ -32,7 +31,6 @@ import javax.annotation.Nonnull; import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.web.SessionProvider; import net.pterodactylus.sone.web.WebInterface; -import net.pterodactylus.sone.web.page.FreenetPage; import net.pterodactylus.sone.web.page.FreenetRequest; import net.pterodactylus.util.io.Closer; import net.pterodactylus.util.web.Page; @@ -47,7 +45,7 @@ import freenet.clients.http.ToadletContext; * * @author David ‘Bombe’ Roden */ -public abstract class JsonPage implements FreenetPage { +public abstract class JsonPage implements Page { /** The logger. */ private static final Logger logger = getLogger(JsonPage.class.getName()); @@ -200,14 +198,6 @@ public abstract class JsonPage implements FreenetPage { } } - /** - * {@inheritDoc} - */ - @Override - public boolean isLinkExcepted(URI link) { - return false; - } - // // PRIVATE METHODS //