X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=model%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FSchemaNode.java;h=9ba302f2f99436a8df91aa2a6e4deee9b4c5d387;hb=45a4c4183b924cd36adf31210eef11be756ba4ba;hp=d4f70a1efe41a1bca707b76d1c04d671a0de42d1;hpb=01fa439ddcd0d74548e24ccbe0bee02cb8a39b29;p=yangtools.git diff --git a/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java b/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java index d4f70a1efe..9ba302f2f9 100644 --- a/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java +++ b/model/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java @@ -20,31 +20,4 @@ public interface SchemaNode extends DocumentedNode.WithStatus { * @return QName with the name of the schema node */ @NonNull QName getQName(); - - /** - * Returns the schema path of the instance of the type {@code SchemaNode}. - * - *

- * The default implementation throws an {@link UnsupportedOperationException}. - * - * @return schema path of the schema node - * @throws UnsupportedOperationException when the implementation does not support per-node unique paths - * @deprecated The idea of identifying SchemaNodes through a global path does not work. There are two problems: - *

- * An alternative method of exchanging pointers to schema nodes (well, statements, really), exists in - * the form of {@link EffectiveStatementInference} and its ecosystem. This method is scheduled for - * removal in the next major release. - */ - @Deprecated(forRemoval = true) - default @NonNull SchemaPath getPath() { - return SchemaNodeDefaults.throwUnsupported(this); - } }