aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2015-06-29 15:17:16 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-06-29 16:40:19 +0000
commit4842a61ba87f5f5c1893a3a121e9d7ec18076af1 (patch)
tree2fc1446d93b1075c4371dc4c8a1d7da14e2fc477 /src/main
parent4bc03a988be48e550c144f555fe923792b26eb26 (diff)
Remove unnecessary dependencies from action context consumers.
-- MOS_MIGRATED_REVID=97131151
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/google/devtools/build/lib/standalone/StandaloneActionContextConsumer.java41
-rw-r--r--src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java6
2 files changed, 0 insertions, 47 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/standalone/StandaloneActionContextConsumer.java b/src/main/java/com/google/devtools/build/lib/standalone/StandaloneActionContextConsumer.java
deleted file mode 100644
index 4d87f12539..0000000000
--- a/src/main/java/com/google/devtools/build/lib/standalone/StandaloneActionContextConsumer.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 Google Inc. All rights reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-package com.google.devtools.build.lib.standalone;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.devtools.build.lib.actions.ActionContextConsumer;
-import com.google.devtools.build.lib.actions.Executor.ActionContext;
-import com.google.devtools.build.lib.actions.SpawnActionContext;
-
-import java.util.Map;
-
-/**
- * {@link ActionContextConsumer} that requests the action contexts necessary for standalone
- * execution.
- */
-public class StandaloneActionContextConsumer implements ActionContextConsumer {
-
- @Override
- public Map<String, String> getSpawnActionContexts() {
- return ImmutableMap.of();
- }
-
- @Override
- public Map<Class<? extends ActionContext>, String> getActionContexts() {
- return ImmutableMap.<Class<? extends ActionContext>, String>builder()
- .put(SpawnActionContext.class, "standalone")
- .build();
- }
-
-}
diff --git a/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java b/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java
index 32d4f42bcd..005af2ae35 100644
--- a/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java
+++ b/src/main/java/com/google/devtools/build/lib/standalone/StandaloneModule.java
@@ -15,7 +15,6 @@ package com.google.devtools.build.lib.standalone;
import com.google.common.collect.ImmutableList;
import com.google.common.eventbus.Subscribe;
-import com.google.devtools.build.lib.actions.ActionContextConsumer;
import com.google.devtools.build.lib.actions.ActionContextProvider;
import com.google.devtools.build.lib.buildtool.BuildRequest;
import com.google.devtools.build.lib.buildtool.buildevent.BuildStartingEvent;
@@ -37,11 +36,6 @@ public class StandaloneModule extends BlazeModule {
}
@Override
- public Iterable<ActionContextConsumer> getActionContextConsumers() {
- return ImmutableList.<ActionContextConsumer>of(new StandaloneActionContextConsumer());
- }
-
- @Override
public void beforeCommand(BlazeRuntime runtime, Command command) {
this.runtime = runtime;
runtime.getEventBus().register(this);