Remove CommonDataObjectCodecContext.namespace()
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / CommonDataObjectCodecPrototype.java
index 2f2f5360cec6d7e6daf5fb97d1d6fbc50c797bca..be16e7d32af69306617acd0f680712966b997e94 100644 (file)
@@ -14,7 +14,6 @@ import java.lang.invoke.VarHandle;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.binding.runtime.api.CompositeRuntimeType;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier.Item;
-import org.opendaylight.yangtools.yang.common.QNameModule;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
 
 abstract sealed class CommonDataObjectCodecPrototype<T extends CompositeRuntimeType> implements CodecContextSupplier
@@ -31,21 +30,15 @@ abstract sealed class CommonDataObjectCodecPrototype<T extends CompositeRuntimeT
     }
 
     private final @NonNull T type;
-    private final @NonNull QNameModule namespace;
     private final @NonNull CodecContextFactory factory;
     private final @NonNull Item<?> bindingArg;
 
-    // multiple paths represent augmentation wrapper
-    // FIXME: this means it is either this or 'childArgs'
-
     // Accessed via INSTANCE
     @SuppressWarnings("unused")
     private volatile CommonDataObjectCodecContext<?, T> instance;
 
-    CommonDataObjectCodecPrototype(final Item<?> bindingArg, final QNameModule namespace, final T type,
-            final CodecContextFactory factory) {
+    CommonDataObjectCodecPrototype(final Item<?> bindingArg, final T type, final CodecContextFactory factory) {
         this.bindingArg = requireNonNull(bindingArg);
-        this.namespace = requireNonNull(namespace);
         this.type = requireNonNull(type);
         this.factory = requireNonNull(factory);
     }
@@ -54,10 +47,6 @@ abstract sealed class CommonDataObjectCodecPrototype<T extends CompositeRuntimeT
         return type;
     }
 
-    final @NonNull QNameModule getNamespace() {
-        return namespace;
-    }
-
     final @NonNull CodecContextFactory getFactory() {
         return factory;
     }