Remove duplicate ldc transform log

This commit is contained in:
yushijinhun 2018-12-31 13:26:58 +08:00
parent 029782551d
commit 27e775114c
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4

View file

@ -4,7 +4,6 @@ import static org.objectweb.asm.Opcodes.ASM6;
import java.util.Optional; import java.util.Optional;
import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.MethodVisitor;
import moe.yushi.authlibinjector.util.Logging;
public abstract class LdcTransformUnit implements TransformUnit { public abstract class LdcTransformUnit implements TransformUnit {
@ -22,7 +21,6 @@ public abstract class LdcTransformUnit implements TransformUnit {
Optional<String> transformed = transformLdc((String) cst); Optional<String> transformed = transformLdc((String) cst);
if (transformed.isPresent() && !transformed.get().equals(cst)) { if (transformed.isPresent() && !transformed.get().equals(cst)) {
modifiedCallback.run(); modifiedCallback.run();
Logging.TRANSFORM.fine("Transformed string [" + cst + "] to [" + transformed.get() + "]");
super.visitLdcInsn(transformed.get()); super.visitLdcInsn(transformed.get());
} else { } else {
super.visitLdcInsn(cst); super.visitLdcInsn(cst);