Remove reference to UnionType 09/39909/6
authorRobert Varga <rovarga@cisco.com>
Mon, 6 Jun 2016 22:34:55 +0000 (00:34 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 14 Jun 2016 15:03:04 +0000 (15:03 +0000)
Since the old parser has been removed, this codepath will never
trigger. Remove reference to UnionType, so it can be removed, too.

Change-Id: I10a779d3bea717dbf33043eb2880240ab18bb1c0
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java

index 74acf2d529b85678608a730b5cb6a3835c531fc1..e202da9df582ad60f74d789d4bd02aacb8c0e5e4 100644 (file)
@@ -106,7 +106,6 @@ import org.opendaylight.yangtools.yang.model.util.DataNodeIterator;
 import org.opendaylight.yangtools.yang.model.util.ExtendedType;
 import org.opendaylight.yangtools.yang.model.util.SchemaContextUtil;
 import org.opendaylight.yangtools.yang.model.util.SchemaNodeUtils;
-import org.opendaylight.yangtools.yang.model.util.UnionType;
 import org.opendaylight.yangtools.yang.model.util.type.CompatUtils;
 import org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort;
 import org.slf4j.Logger;
@@ -1387,11 +1386,6 @@ public class BindingGeneratorImpl implements BindingGenerator {
             return true;
         }
 
-        // Old parser uses broken Union type, which does not change its schema path
-        if (type instanceof UnionType) {
-            return true;
-        }
-
         return false;
     }