Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Sep 20, 2024
1 parent 8b16051 commit c12df2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion distribution/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) {
}
}
}

jreFiles = { Project project, String platform, String architecture ->
return copySpec {
/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,20 +270,6 @@ static String createPluginWithRequestedActionsUrl(String name, Path structure, S
return createPluginWithRequestedActions(name, structure, additionalProps).toUri().toURL().toString();
}

static class JavaSourceFromString extends SimpleJavaFileObject {
private final String code;

public JavaSourceFromString(String className, String code) {
super(URI.create("string:///" + className.replace('.', '/') + Kind.SOURCE.extension), Kind.SOURCE);
this.code = code;
}

@Override
public CharSequence getCharContent(boolean ignoreEncodingErrors) {
return code;
}
}

static void writePlugin(String name, Path structure, String... additionalProps) throws IOException {
String[] properties = Stream.concat(
Stream.of(
Expand All @@ -302,7 +288,6 @@ static void writePlugin(String name, Path structure, String... additionalProps)
),
Arrays.stream(additionalProps)
).toArray(String[]::new);

PluginTestUtil.writePluginProperties(structure, properties);
String className = name.substring(0, 1).toUpperCase(Locale.ENGLISH) + name.substring(1) + "Plugin";
writeJar(structure.resolve("plugin.jar"), className);
Expand Down

0 comments on commit c12df2d

Please sign in to comment.