Skip to content

Commit 9bf051d

Browse files
committed
Remove unused
1 parent 6f5da89 commit 9bf051d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

maven-resolver-tools/src/main/java/org/eclipse/aether/tools/CollectConfiguration.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ enum Mode {
7272
resolver
7373
}
7474

75-
private static final Map<Mode, List<String>> MODE_TEMPLATES = Map.of(
76-
Mode.maven, List.of("page-maven.md", "configuration.properties", "configuration.yaml"),
77-
Mode.resolver, List.of("page-resolver.md", "configuration.properties", "configuration.yaml"));
78-
7975
@CommandLine.Option(
8076
names = {"-m", "--mode"},
8177
arity = "1",
@@ -129,8 +125,7 @@ public Integer call() {
129125
VelocityContext context = new VelocityContext();
130126
context.put("keys", discoveredKeys);
131127

132-
for (String template : MODE_TEMPLATES.get(mode)) {
133-
// output name: remove ".vm"
128+
for (String template : templates) {
134129
try (Writer fileWriter = new CachingWriter(outputDirectory.resolve(template), StandardCharsets.UTF_8)) {
135130
velocityEngine.getTemplate(template + ".vm").merge(context, fileWriter);
136131
}

0 commit comments

Comments
 (0)