Client: delete support for a startup file
@@ -141,8 +141,6 @@ public class Client extends AbstractClient implements IClient {
private static final int NUM_TRIES_WARNING_THRESHOLD = 5;
- private static final String STARTUP_FILE = ".batfishclientrc";
-
/**
* Verify that every non-optional variable has value assigned to it.
*
@@ -1933,7 +1931,6 @@ public class Client extends AbstractClient implements IClient {
case interactive:
{
- runStartupFile();
runInteractive();
break;
}
@@ -1981,17 +1978,6 @@ public class Client extends AbstractClient implements IClient {
}
}
- private void runStartupFile() {
- Path startupFilePath = Paths.get(System.getenv(ENV_HOME), STARTUP_FILE);
- if (Files.exists(startupFilePath)) {
- List<String> commands = readCommands(startupFilePath);
- boolean result = processCommands(commands);
- if (!result) {
- System.exit(1);
- }
- }
- }
-
private boolean setBatfishLogLevel(List<String> options, List<String> parameters) {
if (!isValidArgument(options, parameters, 0, 1, 1, Command.SET_BATFISH_LOGLEVEL)) {
return false;
