Remove ListenerNode/ListenerWalker
[controller.git] / opendaylight / md-sal / sal-inmemory-datastore / src / main / java / org / opendaylight / controller / md / sal / dom / store / impl / tree / ListenerWalker.java
diff --git a/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ListenerWalker.java b/opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/tree/ListenerWalker.java
deleted file mode 100644 (file)
index 7b8add9..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.controller.md.sal.dom.store.impl.tree;
-
-import com.google.common.base.Preconditions;
-import org.opendaylight.controller.md.sal.dom.store.impl.DataChangeListenerRegistration;
-import org.opendaylight.mdsal.dom.spi.RegistrationTreeSnapshot;
-
-/**
- * A walking context, pretty much equivalent to an iterator, but it
- * exposes the underlying tree structure.
- *
- * @author Robert Varga
- *
- * @deprecated Superseded by {@link RegistrationTreeSnapshot}.
- */
-@Deprecated
-public class ListenerWalker implements AutoCloseable {
-    private final RegistrationTreeSnapshot<DataChangeListenerRegistration<?>> delegate;
-
-    ListenerWalker(final RegistrationTreeSnapshot<DataChangeListenerRegistration<?>> delegate) {
-        this.delegate = Preconditions.checkNotNull(delegate);
-    }
-
-    public ListenerNode getRootNode() {
-        return new ListenerNode(delegate.getRootNode());
-    }
-
-    @Override
-    public void close() {
-        delegate.close();
-    }
-}
\ No newline at end of file