From cc8efeda17a0b8279ca2e41687a983a83f460bf5 Mon Sep 17 00:00:00 2001 From: xiang Date: Wed, 31 Mar 2021 16:19:27 +0800 Subject: [PATCH] remove useless code Signed-off-by: xiang --- .../main/java/org/jboss/byteman/agent/Retransformer.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/agent/src/main/java/org/jboss/byteman/agent/Retransformer.java b/agent/src/main/java/org/jboss/byteman/agent/Retransformer.java index 566e72cd..d50ed332 100644 --- a/agent/src/main/java/org/jboss/byteman/agent/Retransformer.java +++ b/agent/src/main/java/org/jboss/byteman/agent/Retransformer.java @@ -77,13 +77,6 @@ public void installScript(List scriptTexts, List scriptNames, Pr for (RuleScript ruleScript : toBeAdded) { String name = ruleScript.getName(); - String className = ruleScript.getTargetClass(); - String baseName = null; - int lastDotIdx = className.lastIndexOf('.'); - if (lastDotIdx >= 0) { - baseName = className.substring(lastDotIdx + 1); - } - RuleScript previous; previous = scriptRepository.addScript(ruleScript);