summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurens Vrijnsen <laurens.vrijnsen@sioux.eu>2013-03-22 13:05:05 +0100
committerLaurens Vrijnsen <laurens.vrijnsen@sioux.eu>2013-03-22 13:05:05 +0100
commit662fc186b14b25019ecc9ae05ce0894360d44393 (patch)
treef111cdc451f175996889a94d7be1f46b95ab4135 /src
parenta2ce62e1f360e9cdb2221cfa3b091c02bda857eb (diff)
downloadgitblit-662fc186b14b25019ecc9ae05ce0894360d44393.tar.gz
gitblit-662fc186b14b25019ecc9ae05ce0894360d44393.zip
Removed superfluous (disabled) code
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/wicket/AuthorizationStrategy.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/com/gitblit/wicket/AuthorizationStrategy.java b/src/com/gitblit/wicket/AuthorizationStrategy.java
index 51183a2a..765d8608 100644
--- a/src/com/gitblit/wicket/AuthorizationStrategy.java
+++ b/src/com/gitblit/wicket/AuthorizationStrategy.java
@@ -15,16 +15,10 @@
*/
package com.gitblit.wicket;
-import java.io.IOException;
-
-import javax.servlet.http.HttpServletResponse;
-
import org.apache.wicket.Component;
import org.apache.wicket.RestartResponseException;
import org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener;
import org.apache.wicket.authorization.strategies.page.AbstractPageAuthorizationStrategy;
-import org.apache.wicket.protocol.http.WebResponse;
-import org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException;
import com.gitblit.GitBlit;
import com.gitblit.Keys;
@@ -88,13 +82,5 @@ public class AuthorizationStrategy extends AbstractPageAuthorizationStrategy imp
if (component instanceof BasePage) {
throw new RestartResponseException(RepositoriesPage.class);
}
- /*** DISABLED CODE ***
- if (component instanceof BasePage) {
- HttpServletResponse response = ((WebResponse)component.getResponse()).getHttpServletResponse();
- response.setHeader("WWW-Authenticate", "Basic realm=test");
- throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_UNAUTHORIZED);
-
- }
- *** END DISABLED ***/
}
}