From 41f7f59a4901bdba5114a6054deaaa85deac575f Mon Sep 17 00:00:00 2001 From: Hugi Thordarson Date: Sun, 17 Nov 2024 08:11:22 +0000 Subject: [PATCH] Remove "wrap ComponentReference in group"-thing. Don't think we need it --- .../ng/appserver/templating/NGTemplateParserProxy.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ng-appserver/src/main/java/ng/appserver/templating/NGTemplateParserProxy.java b/ng-appserver/src/main/java/ng/appserver/templating/NGTemplateParserProxy.java index 16cc5022..e35f5f53 100644 --- a/ng-appserver/src/main/java/ng/appserver/templating/NGTemplateParserProxy.java +++ b/ng-appserver/src/main/java/ng/appserver/templating/NGTemplateParserProxy.java @@ -91,15 +91,6 @@ private static NGElement childrenToTemplate( final List children ) { if( childElements.size() == 1 ) { return childElements.getFirst(); - - // FIXME: OK, I can kind of understand why we unwrap the single element. But why on earth wrap a component reference in a dynamic group? (legacy from WOOgnl). Disabled // Hugi 2024-11-15 - // final NGElement onlyElement = childElements.get( 0 ); - // - // if( onlyElement instanceof NGComponentReference ) { - // return new NGDynamicGroup( null, null, onlyElement ); - // } - // - // return onlyElement; } return NGDynamicGroup.of( childElements );