You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ch...@apache.org on 2016/06/21 06:20:10 UTC
svn commit: r1749436 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java
Author: chetanm
Date: Tue Jun 21 06:20:10 2016
New Revision: 1749436
URL: http://svn.apache.org/viewvc?rev=1749436&view=rev
Log:
OAK-4180 - Use another NodeStore as a local cache for a remote Document store
Remove unused code which has now been moved to parent
Modified:
jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java
Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java?rev=1749436&r1=1749435&r2=1749436&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java Tue Jun 21 06:20:10 2016
@@ -60,10 +60,6 @@ import static org.apache.jackrabbit.oak.
*/
public class DocumentNodeState extends AbstractDocumentNodeState implements CacheValue {
- private static final PerfLogger perfLogger = new PerfLogger(
- LoggerFactory.getLogger(DocumentNodeState.class.getName()
- + ".perf"));
-
public static final Children NO_CHILDREN = new Children();
/**
@@ -463,18 +459,6 @@ public class DocumentNodeState extends A
return cachedSecondaryState;
}
- /**
- * Returns {@code true} if this state has the same revision as the
- * {@code other} state. This method first compares the {@link #readRevision}
- * and then the {@link #lastRevision}.
- *
- * @param other the other state to compare with.
- * @return {@code true} if the revisions are equal, {@code false} otherwise.
- */
- private boolean revisionEquals(DocumentNodeState other) {
- return this.readRevision.equals(other.readRevision)
- || this.lastRevision.equals(other.lastRevision);
- }
/**
* Returns up to {@code limit} child node entries, starting after the given