Skip to content

Commit 97d7414

Browse files
committed
remove useless logger
1 parent a7b4811 commit 97d7414

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/com/javadeobfuscator/deobfuscator/utils/TransformerHelper.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
import com.google.common.base.*;
2020
import com.google.common.primitives.*;
21+
import me.grax.jbytemod.JByteMod;
2122
import org.objectweb.asm.*;
2223
import org.objectweb.asm.tree.*;
2324
import org.objectweb.asm.tree.analysis.*;
2425
import org.objectweb.asm.tree.analysis.Frame;
25-
import org.slf4j.*;
2626

2727
import java.io.*;
2828
import java.util.*;
@@ -443,17 +443,16 @@ public static String insnsToString(Collection<AbstractInsnNode> insns) {
443443

444444
private static final Supplier<ExecutorService> ASYNC_SERVICE = Suppliers.memoize(Executors::newCachedThreadPool);
445445

446-
private static final Logger LOGGER = LoggerFactory.getLogger(TransformerHelper.class);
447446

448447
public static Frame<SourceValue>[] analyze(ClassNode classNode, MethodNode methodNode) {
449448
Future<Frame<SourceValue>[]> future = ASYNC_SERVICE.get().submit(() -> new Analyzer<>(new SourceInterpreter()).analyze(classNode.name, methodNode));
450449
try {
451450
return future.get(10, TimeUnit.SECONDS);
452451
} catch (InterruptedException | TimeoutException e) {
453-
LOGGER.debug("timed out while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc);
452+
//JByteMod.LOGGER.debug("timed out while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc);
454453
return null;
455454
} catch (ExecutionException e) {
456-
LOGGER.debug("exception while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc, e);
455+
//LOGGER.debug("exception while analyzing {} {}{}", classNode.name, methodNode.name, methodNode.desc, e);
457456
return null;
458457
}
459458
}

0 commit comments

Comments
 (0)