jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r984392 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Wed, 11 Aug 2010 12:40:48 GMT
Author: stefan
Date: Wed Aug 11 12:40:48 2010
New Revision: 984392

URL: http://svn.apache.org/viewvc?rev=984392&view=rev
Log:
cleaning up

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=984392&r1=984391&r2=984392&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Wed Aug 11 12:40:48 2010
@@ -192,37 +192,6 @@ public class NodeImpl extends ItemImpl i
         return getPropertyId(p);
     }
 
-    protected PropertyId resolveRelativePropertyPathOld(String relPath)
-            throws RepositoryException {
-        try {
-            /**
-             * first check if relPath is just a name (in which case we don't
-             * have to build & resolve absolute path)
-             */
-            if (relPath.indexOf('/') == -1) {
-                Name propName = session.getQName(relPath);
-                // check if property entry exists
-                NodeState thisState = data.getNodeState();
-                if (thisState.hasPropertyName(propName)) {
-                    return new PropertyId(thisState.getNodeId(), propName);
-                } else {
-                    // there's no property with that name
-                    return null;
-                }
-            }
-            /**
-             * build and resolve absolute path
-             */
-            Path p = PathFactoryImpl.getInstance().create(
-                    getPrimaryPath(), session.getQPath(relPath), true);
-            return sessionContext.getHierarchyManager().resolvePropertyPath(p);
-        } catch (NameException e) {
-            String msg = "failed to resolve path " + relPath + " relative to " + this;
-            log.debug(msg);
-            throw new RepositoryException(msg, e);
-        }
-    }
-
     /**
      * Returns the id of the node at <code>relPath</code> or <code>null</code>
      * if no node exists at <code>relPath</code>.



Mime
View raw message