From a0187b905bfba7c533979c1a385ddced72af14dc Mon Sep 17 00:00:00 2001 From: milanperera Date: Fri, 2 Oct 2015 16:57:42 +0530 Subject: [PATCH] Removed unneccessary imports and code segments --- .../mgt/core/config/permission/PermissionManager.java | 1 - .../WebappAuthenticatorFrameworkServiceComponent.java | 6 ------ 2 files changed, 7 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/config/permission/PermissionManager.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/config/permission/PermissionManager.java index d739256f22..34e8105bd5 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/config/permission/PermissionManager.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/config/permission/PermissionManager.java @@ -25,7 +25,6 @@ import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import java.io.InputStream; import java.util.List; -import java.util.StringTokenizer; /** * This class will add, update custom permissions defined in permission.xml in webapps. diff --git a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/internal/WebappAuthenticatorFrameworkServiceComponent.java b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/internal/WebappAuthenticatorFrameworkServiceComponent.java index a2894fab53..8efb262b1a 100644 --- a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/internal/WebappAuthenticatorFrameworkServiceComponent.java +++ b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/internal/WebappAuthenticatorFrameworkServiceComponent.java @@ -78,12 +78,6 @@ public class WebappAuthenticatorFrameworkServiceComponent { } DataHolder.getInstance().setWebappAuthenticatorRepository(repository); - // Adding permissions to registry -// PermissionAuthorizerConfig.init(); -// for (Permission permission : PermissionAuthorizerConfig.getInstance().getPermissions()) { -// PermissionAuthorizerUtil.addPermission(permission); -// } - List valves = new ArrayList(); valves.add(new WebappAuthenticationHandler()); valves.add(new PermissionAuthorizationValve());