Remove unused methods
This commit is contained in:
@@ -36,7 +36,7 @@ public class Methods
|
||||
public void removeMethod(Method m)
|
||||
{
|
||||
m.remove();
|
||||
methods.remove(methods);
|
||||
methods.remove(m);
|
||||
}
|
||||
|
||||
public ClassFile getClassFile()
|
||||
@@ -57,6 +57,14 @@ public class Methods
|
||||
return null;
|
||||
}
|
||||
|
||||
public Method findMethod(String name, String type)
|
||||
{
|
||||
for (Method m : methods)
|
||||
if (m.getName().equals(name) && m.getDescriptor().equals(type))
|
||||
return m;
|
||||
return null;
|
||||
}
|
||||
|
||||
public Method findMethod(String name)
|
||||
{
|
||||
for (Method m : methods)
|
||||
|
||||
Reference in New Issue
Block a user