Eliminate ValueTypeCodec.encapsulatedValueCodecFor()
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / impl / ValueTypeCodec.java
index d9e3255027a60fb2c92e442c24088b58fd85f874..45343e560fe83e612603b8d895641a74502f53d6 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.mdsal.binding.dom.codec.impl;
 
 import org.opendaylight.yangtools.concepts.IllegalArgumentCodec;
-import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 
 /**
  * Value codec, which serializes / deserializes values from DOM simple values.
@@ -16,9 +15,4 @@ import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
 // FIXME: IllegalArgumentCodec is perhaps not appropriate here due to null behavior
 abstract class ValueTypeCodec implements IllegalArgumentCodec<Object, Object> {
 
-    @SuppressWarnings("rawtypes")
-    static ValueTypeCodec encapsulatedValueCodecFor(final Class<?> typeClz, final TypeDefinition<?> typeDef,
-             final IllegalArgumentCodec delegate) {
-        return new CompositeValueCodec(SchemaUnawareCodec.of(typeClz, typeDef), delegate);
-    }
 }