From 8bbfe737a4662e0425af4450717e5a63442d8db7 Mon Sep 17 00:00:00 2001 From: Ulf Adams Date: Thu, 17 Sep 2015 10:30:18 +0000 Subject: Remove the now-unused BlazeModule.beforeCommand variant. -- MOS_MIGRATED_REVID=103276489 --- .../devtools/build/lib/runtime/BlazeCommandDispatcher.java | 2 +- .../java/com/google/devtools/build/lib/runtime/BlazeModule.java | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/runtime') diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java index 4c6a57f67a..d4cf1611fb 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java @@ -262,7 +262,7 @@ public class BlazeCommandDispatcher { AbruptExitException exitCausingException = null; for (BlazeModule module : runtime.getBlazeModules()) { try { - module.beforeCommand(runtime, commandAnnotation, env); + module.beforeCommand(commandAnnotation, env); } catch (AbruptExitException e) { // Don't let one module's complaints prevent the other modules from doing necessary // setup. We promised to call beforeCommand exactly once per-module before each command diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java index 97d9b21662..a3675da872 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java @@ -224,15 +224,6 @@ public abstract class BlazeModule { public void beforeCommand(Command command, CommandEnvironment env) throws AbruptExitException { } - /** - * Called before each command. - */ - @SuppressWarnings("unused") - public void beforeCommand(BlazeRuntime blazeRuntime, Command command, CommandEnvironment env) - throws AbruptExitException { - beforeCommand(command, env); - } - /** * Returns the output service to be used. It is an error if more than one module returns an * output service. -- cgit v1.2.3