Merge "BUG-509: Remove unused methods"
authorTony Tkacik <ttkacik@cisco.com>
Wed, 21 May 2014 17:23:08 +0000 (17:23 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 21 May 2014 17:23:08 +0000 (17:23 +0000)
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/data/StoreMetadataNode.java

index 3faeabbdafb5089c60877d5cbc3905b63027e900..60d701b467a9210b2bdb52ba3ec932dc2fd9926c 100644 (file)
@@ -83,21 +83,6 @@ class StoreMetadataNode implements Immutable, Identifiable<PathArgument> {
         return "StoreMetadataNode [identifier=" + getIdentifier() + ", nodeVersion=" + nodeVersion + "]";
     }
 
-    public static Optional<UnsignedLong> getVersion(final Optional<StoreMetadataNode> currentMetadata) {
-        if (currentMetadata.isPresent()) {
-            return Optional.of(currentMetadata.get().getNodeVersion());
-        }
-        return Optional.absent();
-    }
-
-    public static Optional<StoreMetadataNode> getChild(final Optional<StoreMetadataNode> parent,
-            final PathArgument child) {
-        if (parent.isPresent()) {
-            return parent.get().getChild(child);
-        }
-        return Optional.absent();
-    }
-
     public static final StoreMetadataNode createRecursively(final NormalizedNode<?, ?> node,
             final UnsignedLong nodeVersion, final UnsignedLong subtreeVersion) {
         Builder builder = builder(nodeVersion) //