BUG-865: remove String-based getDataChildByName()
[mdsal.git] / binding / mdsal-binding-generator-impl / src / main / java / org / opendaylight / yangtools / sal / binding / generator / impl / BindingSchemaContextUtils.java
index a43cf39ec4a09ce09d55ec059a5be97600931329..1ecb3fd7e87b4cd412a4f7671f53ea628bac9788 100644 (file)
@@ -169,7 +169,6 @@ public final class BindingSchemaContextUtils {
 
         }
 
-        // TODO Auto-generated method stub
         return augmentations;
     }
 
@@ -179,10 +178,6 @@ public final class BindingSchemaContextUtils {
 
     public static Optional<ChoiceSchemaNode> findInstantiatedChoice(final DataNodeContainer ctxNode, final QName choiceName) {
         DataSchemaNode potential = ctxNode.getDataChildByName(choiceName);
-        if (potential == null) {
-            potential = ctxNode.getDataChildByName(choiceName.getLocalName());
-        }
-
         if (potential instanceof ChoiceSchemaNode) {
             return Optional.of((ChoiceSchemaNode) potential);
         }