extract method params suggester: cleanup initial params if they are not used anymore

This commit is contained in:
Anna Kozlova
2015-03-18 17:46:02 +01:00
parent f06fd54ec9
commit be5e054e6a
2 changed files with 23 additions and 4 deletions
@@ -2,12 +2,12 @@ public class Test {
{
int x = 0;
newMethod(x, "foo".substring(x));
newMethod("foo".substring(x));
newMethod(x, "bar".substring(x));
newMethod("bar".substring(x));
}
private void newMethod(int x, String substring) {
private void newMethod(String substring) {
System.out.println(substring);
}
}