Skip to content

Commit a19f27e

Browse files
authored
Remove unused elements (#349)
1 parent 4a5fe6a commit a19f27e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

maven-plugin-tools-generators/src/main/resources/help-class-source-v4.vm

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ public class HelpMojo
253253
throws MojoException
254254
{
255255
String mojoGoal = getValue( mojo, "goal" );
256-
Node configurationElement = findSingleChild( mojo, "configuration" );
257256
Node description = findSingleChild( mojo, "description" );
258257
if ( goal == null || goal.length() <= 0 || mojoGoal.equals( goal ) )
259258
{
@@ -283,24 +282,18 @@ public class HelpMojo
283282

284283
for ( Node parameter : parameters )
285284
{
286-
writeParameter( sb, parameter, configurationElement );
285+
writeParameter( sb, parameter );
287286
}
288287
}
289288
}
290289
}
291290

292-
private void writeParameter( StringBuilder sb, Node parameter, Node configurationElement )
291+
private void writeParameter( StringBuilder sb, Node parameter )
293292
throws MojoException
294293
{
295294
String parameterName = getValue( parameter, "name" );
296295
String parameterDescription = getValue( parameter, "description" );
297296

298-
Element fieldConfigurationElement = null;
299-
if ( configurationElement != null )
300-
{
301-
fieldConfigurationElement = (Element) findSingleChild( configurationElement, parameterName );
302-
}
303-
304297
String parameterDefaultValue = getValueOr( parameter, "defaultValue", "" );
305298
if ( isNotEmpty( parameterDefaultValue ) )
306299
{

0 commit comments

Comments
 (0)