Remove obsolete link callback class.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 20 Oct 2010 12:48:13 +0000 (14:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 20 Oct 2010 12:48:13 +0000 (14:48 +0200)
src/main/java/net/pterodactylus/sone/web/WebInterface.java

index 3d67e2d..6eb993d 100644 (file)
@@ -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 <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
-        */
-       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.