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