This commit is contained in:
Adam
2015-08-23 20:29:23 -04:00
parent 5561478ec8
commit 4143a59d9d
3 changed files with 2 additions and 30 deletions

View File

@@ -102,15 +102,7 @@ public class GetField extends Instruction implements GetFieldInstruction
@Override
public void renameField(net.runelite.deob.Field f, Field newField)
{
Class clazz = field.getClassEntry();
NameAndType nat = field.getNameAndType();
ClassFile cf = this.getInstructions().getCode().getAttributes().getClassFile().getGroup().findClass(clazz.getName());
if (cf == null)
return;
net.runelite.deob.Field f2 = cf.findFieldDeep(nat);
assert f2 != null;
net.runelite.deob.Field f2 = getMyField();
if (f2 == f)
field = newField;

View File

@@ -99,15 +99,7 @@ public class GetStatic extends Instruction implements GetFieldInstruction
@Override
public void renameField(net.runelite.deob.Field f, Field newField)
{
Class clazz = field.getClassEntry();
NameAndType nat = field.getNameAndType();
ClassFile cf = this.getInstructions().getCode().getAttributes().getClassFile().getGroup().findClass(clazz.getName());
if (cf == null)
return;
net.runelite.deob.Field f2 = cf.findFieldDeep(nat);
assert f2 != null;
net.runelite.deob.Field f2 = getMyField();
if (f2 == f)
{

View File

@@ -157,18 +157,6 @@ public class ModArith implements Deobfuscator
return fields;
}
// private void replace(Pair pair)
// {
// // do replacements with pair
//
// for (Frame frame : execution.processedFrames)
// {
// for (InstructionContext ctx : frame.getInstructions())
// {
// }
// }
// }
@Override
public void run(ClassGroup group)