cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user