Skip to content

Commit

Permalink
Remove unused elements (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo authored Jan 27, 2025
1 parent 4a5fe6a commit a19f27e
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) )
{
Expand Down Expand Up @@ -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 ) )
{
Expand Down

0 comments on commit a19f27e

Please sign in to comment.