This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new a19f27e4 Remove unused elements (#349)
a19f27e4 is described below

commit a19f27e4c6d9b3de4bf7a75306fee41b01f5a399
Author: Piotrek Żygieło <11896137+pzygi...@users.noreply.github.com>
AuthorDate: Mon Jan 27 19:28:26 2025 +0100

    Remove unused elements (#349)
---
 .../src/main/resources/help-class-source-v4.vm                | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git 
a/maven-plugin-tools-generators/src/main/resources/help-class-source-v4.vm 
b/maven-plugin-tools-generators/src/main/resources/help-class-source-v4.vm
index 008c5219..5cb0bb17 100644
--- a/maven-plugin-tools-generators/src/main/resources/help-class-source-v4.vm
+++ b/maven-plugin-tools-generators/src/main/resources/help-class-source-v4.vm
@@ -253,7 +253,6 @@ public class HelpMojo
         throws MojoException
     {
         String mojoGoal = getValue( mojo, "goal" );
-        Node configurationElement = findSingleChild( mojo, "configuration" );
         Node description = findSingleChild( mojo, "description" );
         if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) )
         {
@@ -283,24 +282,18 @@ public class HelpMojo
 
                 for ( Node parameter : parameters )
                 {
-                    writeParameter( sb, parameter, configurationElement );
+                    writeParameter( sb, parameter );
                 }
             }
         }
     }
 
-    private void writeParameter( StringBuilder sb, Node parameter, Node 
configurationElement )
+    private void writeParameter( StringBuilder sb, Node parameter )
         throws MojoException
     {
         String parameterName = getValue( parameter, "name" );
         String parameterDescription = getValue( parameter, "description" );
 
-        Element fieldConfigurationElement = null;
-        if ( configurationElement != null )
-        {
-          fieldConfigurationElement =  (Element) findSingleChild( 
configurationElement, parameterName );
-        }
-
         String parameterDefaultValue = getValueOr( parameter, "defaultValue", 
"" );
         if ( isNotEmpty( parameterDefaultValue ) )
         {

Reply via email to