diff options
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeCommandDispatcher.java | 15 |
1 files changed, 0 insertions, 15 deletions
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 310829f65a..dae2f597f8 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 @@ -488,12 +488,6 @@ public class BlazeCommandDispatcher { System.setOut(savedOut); System.setErr(savedErr); - reporter.removeHandler(handler); - releaseHandler(handler); - if (!eventHandlerOptions.useColor()) { - reporter.removeHandler(ansiAllowingHandler); - releaseHandler(ansiAllowingHandler); - } env.getTimestampGranularityMonitor().waitForTimestampGranularity(outErr); } } @@ -602,15 +596,6 @@ public class BlazeCommandDispatcher { return RateLimitingEventHandler.create(eventHandler, eventOptions.showProgressRateLimit); } - /** Unsets the event handler. */ - private void releaseHandler(EventHandler eventHandler) { - if (eventHandler instanceof FancyTerminalEventHandler) { - // Make sure that the terminal state of the old event handler is clear - // before creating a new one. - ((FancyTerminalEventHandler) eventHandler).resetTerminal(); - } - } - /** * Returns the runtime instance shared by the commands that this dispatcher * dispatches to. |