Skip to content

Commit d7f94be

Browse files
committed
Remove unused code
1 parent 275573e commit d7f94be

File tree

1 file changed

+0
-29
lines changed
  • substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/util

1 file changed

+0
-29
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/util/JDKArgsUtils.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -90,33 +90,4 @@ private static boolean isTerminalOpt(String arg) {
9090
default -> arg.startsWith("--module=");
9191
};
9292
}
93-
94-
private static boolean isWhiteSpaceOption(String name) {
95-
return isModuleOption(name) || isLauncherOption(name);
96-
}
97-
98-
private static boolean isModuleOption(String name) {
99-
return switch (name) {
100-
case "--module-path", "-p", "--upgrade-module-path", "--add-modules", "--enable-native-access", "--limit-modules", "--add-exports", "--add-opens", "--add-reads", "--patch-module" -> true;
101-
default -> false;
102-
};
103-
}
104-
105-
private static boolean isLauncherOption(String name) {
106-
return isClassPathOption(name) ||
107-
isLauncherMainOption(name) ||
108-
"--describe-module".equals(name) ||
109-
"-d".equals(name) ||
110-
"--source".equals(name);
111-
}
112-
113-
private static boolean isClassPathOption(String name) {
114-
return "-classpath".equals(name) ||
115-
"-cp".equals(name) ||
116-
"--class-path".equals(name);
117-
}
118-
119-
private static boolean isLauncherMainOption(String name) {
120-
return "--module".equals(name) || "-m".equals(name);
121-
}
12293
}

0 commit comments

Comments
 (0)