Author: keith
Date: Mon Apr 28 08:26:02 2008
New Revision: 16280

Log:

Deleting some redundant code


Modified:
   
trunk/mashup/java/modules/core/src/org/wso2/mashup/realm/wsas/WSASUserStoreAdmin.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/realm/wsas/WSASUserStoreAdmin.java
==============================================================================
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/realm/wsas/WSASUserStoreAdmin.java
       (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/realm/wsas/WSASUserStoreAdmin.java
       Mon Apr 28 08:26:02 2008
@@ -64,41 +64,22 @@
     }
 
     public void deleteRole(String roleName) throws UserStoreException {
-        Connection dbConnection = null;
         try {
             UserAdmin admin = new UserAdmin();
             admin.deleteRoleCompletely(roleName);
             this.setRoleProperties(roleName, new HashMap());
         } catch (AxisFault e) {
             throw new UserStoreException(e.getMessage());
-        } finally {
-            try {
-                if (dbConnection != null) {
-                    dbConnection.close();
-                }
-            } catch (SQLException e) {
-                throw new UserStoreException("errorClosingConnection", e);
-            }
         }
-
     }
 
     public void deleteUser(String userName) throws UserStoreException {
-        Connection dbConnection = null;
         try {
             UserAdmin admin = new UserAdmin();
             admin.deleteUser(userName);
             this.setUserProperties(userName, new HashMap());
         } catch (AxisFault e) {
             throw new UserStoreException(e.getMessage());
-        } finally {
-            try {
-                if (dbConnection != null) {
-                    dbConnection.close();
-                }
-            } catch (SQLException e) {
-                throw new UserStoreException("errorClosingConnection", e);
-            }
         }
     }
 

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to