cleanup
This commit is contained in:
@@ -102,15 +102,7 @@ public class GetField extends Instruction implements GetFieldInstruction
|
|||||||
@Override
|
@Override
|
||||||
public void renameField(net.runelite.deob.Field f, Field newField)
|
public void renameField(net.runelite.deob.Field f, Field newField)
|
||||||
{
|
{
|
||||||
Class clazz = field.getClassEntry();
|
net.runelite.deob.Field f2 = getMyField();
|
||||||
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;
|
|
||||||
|
|
||||||
if (f2 == f)
|
if (f2 == f)
|
||||||
field = newField;
|
field = newField;
|
||||||
|
|||||||
@@ -99,15 +99,7 @@ public class GetStatic extends Instruction implements GetFieldInstruction
|
|||||||
@Override
|
@Override
|
||||||
public void renameField(net.runelite.deob.Field f, Field newField)
|
public void renameField(net.runelite.deob.Field f, Field newField)
|
||||||
{
|
{
|
||||||
Class clazz = field.getClassEntry();
|
net.runelite.deob.Field f2 = getMyField();
|
||||||
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;
|
|
||||||
|
|
||||||
if (f2 == f)
|
if (f2 == f)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -157,18 +157,6 @@ public class ModArith implements Deobfuscator
|
|||||||
|
|
||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
// private void replace(Pair pair)
|
|
||||||
// {
|
|
||||||
// // do replacements with pair
|
|
||||||
//
|
|
||||||
// for (Frame frame : execution.processedFrames)
|
|
||||||
// {
|
|
||||||
// for (InstructionContext ctx : frame.getInstructions())
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(ClassGroup group)
|
public void run(ClassGroup group)
|
||||||
|
|||||||
Reference in New Issue
Block a user