aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2018-05-23 04:55:52 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-23 04:57:30 -0700
commit3493e4c7f98984b9b0109d2234b67637057d2843 (patch)
tree961039d7316b3159f8509f57dcc7a817e9481582 /src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
parent259c67d9dd0b173fb4cc5830d29ce6004e67ff84 (diff)
Remove some dead AbstractAction constructors
The constructors which don't accept an action environment should not be called, with the exception of subclasses that don't run any subprocesses, and therefore don't need an environment. PiperOrigin-RevId: 197706734
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java b/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
index b52bc2f8d7..034f6c2670 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
@@ -133,40 +133,6 @@ public abstract class AbstractAction implements Action, ActionApi {
env);
}
- /**
- * Construct an abstract action with the specified tools, inputs and outputs;
- */
- protected AbstractAction(
- ActionOwner owner,
- Iterable<Artifact> tools,
- Iterable<Artifact> inputs,
- Iterable<Artifact> outputs) {
- this(owner, tools, inputs, EmptyRunfilesSupplier.INSTANCE, outputs, ActionEnvironment.EMPTY);
- }
-
- protected AbstractAction(
- ActionOwner owner,
- Iterable<Artifact> inputs,
- RunfilesSupplier runfilesSupplier,
- Iterable<Artifact> outputs) {
- this(
- owner,
- /*tools=*/ImmutableList.of(),
- inputs,
- runfilesSupplier,
- outputs,
- ActionEnvironment.EMPTY);
- }
-
- protected AbstractAction(
- ActionOwner owner,
- Iterable<Artifact> tools,
- Iterable<Artifact> inputs,
- RunfilesSupplier runfilesSupplier,
- Iterable<Artifact> outputs) {
- this(owner, tools, inputs, runfilesSupplier, outputs, ActionEnvironment.EMPTY);
- }
-
protected AbstractAction(
ActionOwner owner,
Iterable<Artifact> tools,