Remove unused methods

This commit is contained in:
Adam
2015-04-25 15:30:22 -04:00
parent a9f953b46a
commit 267efc7940
5 changed files with 77 additions and 4 deletions

View File

@@ -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)