Skip to content

Commit

Permalink
Removed unused config option
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik authored Dec 1, 2024
1 parent 6291a2c commit b54a386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
24 changes: 0 additions & 24 deletions btrace-agent/src/main/java/org/openjdk/btrace/agent/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit b54a386

Please sign in to comment.