]> source.dussan.org Git - gitblit.git/commitdiff
Removed superfluous (disabled) code 76/head
authorLaurens Vrijnsen <laurens.vrijnsen@sioux.eu>
Fri, 22 Mar 2013 12:05:05 +0000 (13:05 +0100)
committerLaurens Vrijnsen <laurens.vrijnsen@sioux.eu>
Fri, 22 Mar 2013 12:05:05 +0000 (13:05 +0100)
src/com/gitblit/wicket/AuthorizationStrategy.java

index 51183a2a7c9b4cac44011a52d47ced51cd32b24a..765d86081175fca1c9266b603fac6b9a09defdda 100644 (file)
  */\r
 package com.gitblit.wicket;\r
 \r
-import java.io.IOException;\r
-\r
-import javax.servlet.http.HttpServletResponse;\r
-\r
 import org.apache.wicket.Component;\r
 import org.apache.wicket.RestartResponseException;\r
 import org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener;\r
 import org.apache.wicket.authorization.strategies.page.AbstractPageAuthorizationStrategy;\r
-import org.apache.wicket.protocol.http.WebResponse;\r
-import org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException;\r
 \r
 import com.gitblit.GitBlit;\r
 import com.gitblit.Keys;\r
@@ -88,13 +82,5 @@ public class AuthorizationStrategy extends AbstractPageAuthorizationStrategy imp
                if (component instanceof BasePage) {\r
                        throw new RestartResponseException(RepositoriesPage.class);\r
                }\r
-               /*** DISABLED CODE ***\r
-               if (component instanceof BasePage) {\r
-                       HttpServletResponse response = ((WebResponse)component.getResponse()).getHttpServletResponse();\r
-                       response.setHeader("WWW-Authenticate", "Basic realm=test");\r
-                       throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_UNAUTHORIZED);\r
-                       \r
-               } \r
-               *** END DISABLED ***/\r
        }\r
 }\r