]> source.dussan.org Git - archiva.git/commitdiff
remove non used private method
authorOlivier Lamy <olamy@apache.org>
Thu, 19 Dec 2013 01:03:40 +0000 (01:03 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 19 Dec 2013 01:03:40 +0000 (01:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1552196 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/main/java/org/apache/archiva/admin/repository/managed/DefaultManagedRepositoryAdmin.java

index 4d0ea216ff033c73f9c6a0e09a38c8ea9be30f2b..bb7b09d53c858922c09d1928196da4a11ff573d5 100644 (file)
@@ -730,26 +730,6 @@ public class DefaultManagedRepositoryAdmin
     }
 
 
-    private void addRepositoryRoles( ManagedRepository newRepository )
-        throws RoleManagerException
-    {
-        String repoId = newRepository.getId();
-
-        // TODO: double check these are configured on start up
-        // TODO: belongs in the business logic
-
-        if ( !getRoleManager().templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, repoId ) )
-        {
-            getRoleManager().createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_OBSERVER, repoId );
-        }
-
-        if ( !getRoleManager().templatedRoleExists( ArchivaRoleConstants.TEMPLATE_REPOSITORY_MANAGER, repoId ) )
-        {
-            getRoleManager().createTemplatedRole( ArchivaRoleConstants.TEMPLATE_REPOSITORY_MANAGER, repoId );
-        }
-    }
-
-
     private void addRepositoryRoles( String repoId )
         throws RoleManagerException
     {