|
|
@ -36,7 +36,7 @@ class UnusedArgTransformer : Transformer() { |
|
|
|
for (library in classPath.libraries) { |
|
|
|
for (library in classPath.libraries) { |
|
|
|
for (clazz in library) { |
|
|
|
for (clazz in library) { |
|
|
|
for (method in clazz.methods) { |
|
|
|
for (method in clazz.methods) { |
|
|
|
if (method.hasCode()) { |
|
|
|
if (method.hasCode) { |
|
|
|
populateRetainedArgs(classPath, clazz, method) |
|
|
|
populateRetainedArgs(classPath, clazz, method) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -94,7 +94,7 @@ class UnusedArgTransformer : Transformer() { |
|
|
|
method: MethodNode |
|
|
|
method: MethodNode |
|
|
|
): Boolean { |
|
|
|
): Boolean { |
|
|
|
// delete unused int args from call sites |
|
|
|
// delete unused int args from call sites |
|
|
|
if (!method.hasCode()) { |
|
|
|
if (!method.hasCode) { |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|