From: David ‘Bombe’ Roden Date: Wed, 20 Oct 2010 12:48:13 +0000 (+0200) Subject: Remove obsolete link callback class. X-Git-Tag: 0.1-RC1~161 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=ef30b3672bc49eb997fc4b2f98638c1bebc8a0dd Remove obsolete link callback class. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 3d67e2d..6eb993d 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -48,10 +48,8 @@ import net.pterodactylus.util.template.Template; import net.pterodactylus.util.template.TemplateException; import net.pterodactylus.util.template.TemplateFactory; import net.pterodactylus.util.template.TemplateProvider; -import freenet.clients.http.LinkEnabledCallback; import freenet.clients.http.SessionManager; import freenet.clients.http.ToadletContainer; -import freenet.clients.http.ToadletContext; import freenet.l10n.BaseL10n; /** @@ -242,24 +240,6 @@ public class WebInterface extends AbstractService { } /** - * {@link LinkEnabledCallback} implementation that always returns - * {@code true} when {@link LinkEnabledCallback#isEnabled(ToadletContext)} - * is called. - * - * @author David ‘Bombe’ Roden - */ - public class AlwaysEnabledCallback implements LinkEnabledCallback { - - /** - * {@inheritDoc} - */ - @Override - public boolean isEnabled(ToadletContext toadletContext) { - return true; - } - } - - /** * Template provider implementation that uses * {@link WebInterface#createReader(String)} to load templates for * inclusion.