Skip to content

Commit f555426

Browse files
Scripting: Remove dead code from painless module (#32064) (#32104)
1 parent 8301b2f commit f555426

File tree

2 files changed

+0
-70
lines changed

2 files changed

+0
-70
lines changed

modules/lang-painless/src/main/java/org/elasticsearch/painless/MethodWriter.java

-8
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,6 @@ public static Type getType(Class<?> clazz) {
227227
return Type.getType(clazz);
228228
}
229229

230-
public void writeBranch(final Label tru, final Label fals) {
231-
if (tru != null) {
232-
visitJumpInsn(Opcodes.IFNE, tru);
233-
} else if (fals != null) {
234-
visitJumpInsn(Opcodes.IFEQ, fals);
235-
}
236-
}
237-
238230
/** Starts a new string concat.
239231
* @return the size of arguments pushed to stack (the object that does string concats, e.g. a StringBuilder)
240232
*/

modules/lang-painless/src/main/java/org/elasticsearch/painless/antlr/StashingTokenFactory.java

-62
This file was deleted.

0 commit comments

Comments
 (0)