Author: mduerig
Date: Thu Jul 12 09:39:13 2012
New Revision: 1360601
URL: http://svn.apache.org/viewvc?rev=1360601&view=rev
Log:
minor: inline and remove redundant private helper method
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java?rev=1360601&r1=1360600&r2=1360601&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
(original)
+++
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Thu Jul 12 09:39:13 2012
@@ -62,7 +62,7 @@ public class RootImpl implements Root {
/** Current branch this root operates on */
private NodeStoreBranch branch;
- /** Actual root element of the {@code Tree} */
+ /** Current root {@code Tree} */
private TreeImpl root;
/**
@@ -267,10 +267,6 @@ public class RootImpl implements Root {
}
}
- private TreeImpl getRoot() {
- return root;
- }
-
/**
* Get a tree for the child identified by {@code path}
* @param path the path to the child
@@ -278,7 +274,7 @@ public class RootImpl implements Root {
* at {@code path} or {@code null} if no such item exits.
*/
private TreeImpl getChild(String path) {
- TreeImpl child = getRoot();
+ TreeImpl child = root;
for (String name : elements(path)) {
child = child.getChild(name);
if (child == null) {