Class RemoveMethodCallVisitor<P>

java.lang.Object
org.openrewrite.TreeVisitor<J,P>
org.openrewrite.java.JavaVisitor<P>
org.openrewrite.java.JavaIsoVisitor<P>
org.openrewrite.java.cleanup.RemoveMethodCallVisitor<P>

public class RemoveMethodCallVisitor<P> extends JavaIsoVisitor<P>
Removes all MethodCall matching both the methodMatcher and the argumentPredicate for all arguments.

Only removes MethodCall where the call's return value is unused.