Remove AugmentationSchemaNode.getOriginalDefinition()
[yangtools.git] / model / yang-model-ri / src / main / java / org / opendaylight / yangtools / yang / model / ri / stmt / impl / eff / AugmentEffectiveStatementImpl.java
index b92d94f7fe535f0f9043aa72b4c3278130bf29a4..46d4c6dd2baaa5b8ff9bb04751c601db37078aef 100644 (file)
@@ -10,9 +10,7 @@ package org.opendaylight.yangtools.yang.model.ri.stmt.impl.eff;
 import static java.util.Objects.requireNonNull;
 
 import com.google.common.collect.ImmutableList;
-import java.util.Optional;
 import org.eclipse.jdt.annotation.NonNull;
-import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode;
@@ -37,20 +35,17 @@ public final class AugmentEffectiveStatementImpl
             ActionNodeContainerMixin<SchemaNodeIdentifier, AugmentStatement>,
             NotificationNodeContainerMixin<SchemaNodeIdentifier, AugmentStatement>,
             WhenConditionMixin<SchemaNodeIdentifier, AugmentStatement> {
-    private final @Nullable AugmentationSchemaNode original;
     private final @NonNull SchemaNodeIdentifier argument;
     private final @NonNull QNameModule rootModuleQName;
     private final int flags;
 
     public AugmentEffectiveStatementImpl(final AugmentStatement declared, final SchemaNodeIdentifier argument,
             final int flags, final QNameModule rootModuleQName,
-            final ImmutableList<? extends EffectiveStatement<?, ?>> substatements,
-            final @Nullable AugmentationSchemaNode original) {
+            final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
         super(declared, substatements);
         this.argument = requireNonNull(argument);
         this.rootModuleQName = requireNonNull(rootModuleQName);
         this.flags = flags;
-        this.original = original;
     }
 
     @Override
@@ -58,12 +53,6 @@ public final class AugmentEffectiveStatementImpl
         return argument;
     }
 
-    @Override
-    @Deprecated(since = "7.0.9", forRemoval = true)
-    public Optional<AugmentationSchemaNode> getOriginalDefinition() {
-        return Optional.ofNullable(original);
-    }
-
     @Override
     public int flags() {
         return flags;