Skip to content

Commit

Permalink
Remove unused method from AppServer
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 6, 2018
1 parent 3ae0b62 commit 921f489
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.EnumSet;

import javax.servlet.DispatcherType;
import javax.servlet.Filter;
import javax.servlet.Servlet;

public class JettyAppServer implements AppServer {
Expand Down Expand Up @@ -286,15 +283,7 @@ public void addServlet(
throw new RuntimeException(e);
}
}

public void addFilter(
ServletContextHandler context,
Class<? extends Filter> filter,
String path,
DispatcherType dispatches) {
context.addFilter(filter, path, EnumSet.of(dispatches));
}


protected ServletContextHandler addResourceHandler(String contextPath, Path resourceBase) {
ServletContextHandler context = new ServletContextHandler();

Expand Down

0 comments on commit 921f489

Please sign in to comment.