use of jadx.core.utils.InsnRemover in project jadx by skylot.
the class ConstructorVisitor method replaceInvoke.
private static boolean replaceInvoke(MethodNode mth) {
boolean replaced = false;
InsnRemover remover = new InsnRemover(mth);
for (BlockNode block : mth.getBasicBlocks()) {
remover.setBlock(block);
int size = block.getInstructions().size();
for (int i = 0; i < size; i++) {
InsnNode insn = block.getInstructions().get(i);
if (insn.getType() == InsnType.INVOKE) {
replaced |= processInvoke(mth, block, i, remover);
}
}
remover.perform();
}
return replaced;
}
Aggregations