Remove AbstractEffectiveModule.get{Namespace,Revision} 11/90911/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 3 Jul 2020 08:43:49 +0000 (10:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 3 Jul 2020 08:44:38 +0000 (10:44 +0200)
These methods are provided as default methods in Module, remove
them to reduce clutter.

JIRA: YANGTOOLS-1065
Change-Id: I6139d1ee9d0ab42f6a52677a20d6823b2dc98022
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/AbstractEffectiveModule.java

index bf49263c376037d3cec9a1625336bc8db7f26cb1..15e1ae84ed0e0272209a6aaf5a61a945d5f20c89 100644 (file)
@@ -16,7 +16,6 @@ import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableMap.Builder;
 import com.google.common.collect.ImmutableSet;
-import java.net.URI;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.LinkedHashSet;
@@ -28,7 +27,6 @@ import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.concepts.SemVer;
 import org.opendaylight.yangtools.openconfig.model.api.OpenConfigVersionEffectiveStatement;
 import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.common.YangVersion;
 import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode;
 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
@@ -184,21 +182,11 @@ public abstract class AbstractEffectiveModule<D extends DeclaredStatement<String
         this.uses = ImmutableSet.copyOf(mutableUses);
     }
 
-    @Override
-    public URI getNamespace() {
-        return getQNameModule().getNamespace();
-    }
-
     @Override
     public String getName() {
         return argument();
     }
 
-    @Override
-    public Optional<Revision> getRevision() {
-        return getQNameModule().getRevision();
-    }
-
     @Override
     public String getPrefix() {
         return prefix;