Remove binding spec2
[mdsal.git] / binding2 / mdsal-binding2-spec / src / main / java / org / opendaylight / mdsal / binding / javav2 / spec / structural / TreeChildNode.java
diff --git a/binding2/mdsal-binding2-spec/src/main/java/org/opendaylight/mdsal/binding/javav2/spec/structural/TreeChildNode.java b/binding2/mdsal-binding2-spec/src/main/java/org/opendaylight/mdsal/binding/javav2/spec/structural/TreeChildNode.java
deleted file mode 100644 (file)
index ac6afa0..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017 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.mdsal.binding.javav2.spec.structural;
-
-import com.google.common.annotations.Beta;
-import org.opendaylight.mdsal.binding.javav2.spec.base.TreeArgument;
-import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
-import org.opendaylight.yangtools.util.ClassLoaderUtils;
-
-/**
- *
- * Replaces org.opendaylight.yangtools.yang.binding.ChildOf from Binding Spec v1
- */
-@Beta
-public interface TreeChildNode<P extends TreeNode, I extends TreeArgument<?>> extends TreeNode {
-
-    I treeIdentifier();
-
-
-    // REPLACES: BindingReflections#findHierarchicalParent()
-    default Class<P> treeParent() {
-        return ClassLoaderUtils.findFirstGenericArgument(getClass(), TreeChildNode.class);
-    }
-
-}