diff --git a/btrace-agent/src/main/java/org/openjdk/btrace/agent/Main.java b/btrace-agent/src/main/java/org/openjdk/btrace/agent/Main.java index 8ec850fc..e48fa703 100644 --- a/btrace-agent/src/main/java/org/openjdk/btrace/agent/Main.java +++ b/btrace-agent/src/main/java/org/openjdk/btrace/agent/Main.java @@ -24,7 +24,6 @@ */ package org.openjdk.btrace.agent; -import static org.openjdk.btrace.core.Args.ALLOWED_CALLS; import static org.openjdk.btrace.core.Args.BOOT_CLASS_PATH; import static org.openjdk.btrace.core.Args.CMD_QUEUE_LIMIT; import static org.openjdk.btrace.core.Args.CONFIG; @@ -268,29 +267,6 @@ private static void loadDefaultArguments(String config) { argMap.put(argKey, scriptVal); break; } - case ALLOWED_CALLS: - { - if (Boolean.parseBoolean(argMap.get(argKey))) { - // merge allowed calls from command line and agent.properties - String oldVal = argMap.get(argKey); - String newVal = oldVal + "|" + argVal; - logMsg - .append("merging default agent argument '") - .append(argKey) - .append("':'") - .append(oldVal) - .append("' with '") - .append(argVal) - .append("'"); - argMap.put(argKey, newVal); - } else { - logMsg - .append("argument '") - .append(argKey) - .append("' is applicable only in sandboxed mode"); - } - break; - } case SYSTEM_CLASS_PATH: // fall through case BOOT_CLASS_PATH: // fall through case CONFIG: diff --git a/btrace-core/src/main/java/org/openjdk/btrace/core/Args.java b/btrace-core/src/main/java/org/openjdk/btrace/core/Args.java index b20b0cca..bd966558 100644 --- a/btrace-core/src/main/java/org/openjdk/btrace/core/Args.java +++ b/btrace-core/src/main/java/org/openjdk/btrace/core/Args.java @@ -1,7 +1,6 @@ package org.openjdk.btrace.core; public final class Args { - public static final String ALLOWED_CALLS = "allowedCalls"; public static final String SYSTEM_CLASS_PATH = "systemClassPath"; public static final String BOOT_CLASS_PATH = "bootClassPath"; public static final String CONFIG = "config";