jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r111494 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Fri, 10 Dec 2004 11:06:22 GMT
Author: stefan
Date: Fri Dec 10 03:06:20 2004
New Revision: 111494

URL: http://svn.apache.org/viewcvs?view=rev&rev=111494
Log:
removing dead code
Modified:
   incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
Url: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java?view=diff&rev=111494&p1=incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java&r1=111493&p2=incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java&r2=111494
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java	(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java	Fri
Dec 10 03:06:20 2004
@@ -76,7 +76,7 @@
     private static final String REP_NAME = "Jackrabbit";
     private static final String REP_VERSION = "0.15";
 
-    // system root location
+    // system root location (jcr:system)
     public static final QName SYSTEM_ROOT_NAME = new QName(NamespaceRegistryImpl.NS_JCR_URI,
"system");
 
     private String rootNodeUUID;
@@ -282,18 +282,6 @@
         // init version manager
         // todo: as soon as dynamic workspaces are available, base on system ws
         SessionImpl verSession = getSystemSession(repConfig.getDefaultWorkspaceName());
-        NodeImpl vRootNode = (NodeImpl) verSession.getRootNode();
-        try {
-            if (!vRootNode.hasNode(SYSTEM_ROOT_NAME)) {
-                verSession.getWorkspace().clone(repConfig.getDefaultWorkspaceName(),
-                        SYSTEM_ROOT_NAME.toJCRName(verSession.getNamespaceResolver()),
-                        SYSTEM_ROOT_NAME.toJCRName(verSession.getNamespaceResolver()));
-            }
-        } catch (NoPrefixDeclaredException npde) {
-            String msg = "failed to initialize version manager";
-            log.error(msg, npde);
-            throw new RepositoryException(msg, npde);
-        }
         vMgr = new PersistentVersionManager(verSession);
 
         // load repository properties

Mime
View raw message