Skip to content

Commit

Permalink
Remove unused Java references.
Browse files Browse the repository at this point in the history
Part of a Bazel dead code cleanup.

PiperOrigin-RevId: 530646985
Change-Id: Icb967b82a84a368bbf94e4e2dafaf1443cbf3248
  • Loading branch information
gregestren authored and Copybara-Service committed May 9, 2023
1 parent 6b7f1ef commit 0bd361f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 41 deletions.
Expand Up @@ -42,7 +42,6 @@
import com.google.devtools.build.lib.actions.SpawnResult.Status;
import com.google.devtools.build.lib.actions.Spawns;
import com.google.devtools.build.lib.actions.UserExecException;
import com.google.devtools.build.lib.actions.cache.OutputMetadataStore;
import com.google.devtools.build.lib.events.Event;
import com.google.devtools.build.lib.events.ExtendedEventHandler;
import com.google.devtools.build.lib.exec.SpawnCache.CacheHandle;
Expand Down Expand Up @@ -90,7 +89,7 @@ protected AbstractSpawnStrategy(
}

/**
* Get's the {@link SpawnRunner} that this {@link AbstractSpawnStrategy} uses to actually run
* Gets the {@link SpawnRunner} that this {@link AbstractSpawnStrategy} uses to actually run
* spawns.
*
* <p>This is considered a stop-gap until we refactor the entire SpawnStrategy / SpawnRunner
Expand Down Expand Up @@ -285,12 +284,6 @@ public ListenableFuture<Void> prefetchInputs()
public InputMetadataProvider getInputMetadataProvider() {
return actionExecutionContext.getInputMetadataProvider();
}

@Override
public OutputMetadataStore getMetadataInjector() {
return actionExecutionContext.getOutputMetadataStore();
}

@Override
public <T extends ActionContext> T getContext(Class<T> identifyingType) {
return actionExecutionContext.getContext(identifyingType);
Expand Down
Expand Up @@ -27,7 +27,6 @@
import com.google.devtools.build.lib.actions.LostInputsExecException;
import com.google.devtools.build.lib.actions.Spawn;
import com.google.devtools.build.lib.actions.SpawnResult;
import com.google.devtools.build.lib.actions.cache.MetadataInjector;
import com.google.devtools.build.lib.events.ExtendedEventHandler;
import com.google.devtools.build.lib.profiler.Profiler;
import com.google.devtools.build.lib.profiler.ProfilerTask;
Expand Down Expand Up @@ -258,12 +257,6 @@ SortedMap<PathFragment, ActionInput> getInputMapping(
/** Reports a progress update to the Spawn strategy. */
void report(ProgressStatus progress);

/**
* Returns a {@link MetadataInjector} that allows a caller to inject metadata about spawn
* outputs that are stored remotely.
*/
MetadataInjector getMetadataInjector();

/**
* Returns the context registered for the given identifying type or {@code null} if none was
* registered.
Expand Down
Expand Up @@ -44,7 +44,6 @@
import com.google.devtools.build.lib.actions.Spawn;
import com.google.devtools.build.lib.actions.SpawnResult;
import com.google.devtools.build.lib.actions.SpawnResult.Status;
import com.google.devtools.build.lib.actions.cache.MetadataInjector;
import com.google.devtools.build.lib.actions.cache.VirtualActionInput;
import com.google.devtools.build.lib.actions.util.ActionsTestUtil;
import com.google.devtools.build.lib.exec.BinTools;
Expand Down Expand Up @@ -293,11 +292,6 @@ public void report(ProgressStatus progress) {
reportedStatus.add(progress);
}

@Override
public MetadataInjector getMetadataInjector() {
throw new UnsupportedOperationException();
}

@Override
public boolean isRewindingEnabled() {
return false;
Expand Down
Expand Up @@ -49,8 +49,6 @@
import com.google.devtools.build.lib.actions.SimpleSpawn;
import com.google.devtools.build.lib.actions.SpawnResult;
import com.google.devtools.build.lib.actions.SpawnResult.Status;
import com.google.devtools.build.lib.actions.cache.MetadataInjector;
import com.google.devtools.build.lib.actions.util.ActionsTestUtil;
import com.google.devtools.build.lib.clock.JavaClock;
import com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder;
import com.google.devtools.build.lib.collect.nestedset.Order;
Expand Down Expand Up @@ -191,11 +189,6 @@ public void report(ProgressStatus progress) {
progressUpdates.add(progress);
}

@Override
public MetadataInjector getMetadataInjector() {
return ActionsTestUtil.THROWING_METADATA_HANDLER;
}

@Override
public boolean isRewindingEnabled() {
return false;
Expand Down
Expand Up @@ -24,8 +24,6 @@
import com.google.devtools.build.lib.actions.ForbiddenActionInputException;
import com.google.devtools.build.lib.actions.InputMetadataProvider;
import com.google.devtools.build.lib.actions.Spawn;
import com.google.devtools.build.lib.actions.cache.MetadataInjector;
import com.google.devtools.build.lib.actions.util.ActionsTestUtil;
import com.google.devtools.build.lib.exec.SpawnInputExpander;
import com.google.devtools.build.lib.exec.SpawnRunner.ProgressStatus;
import com.google.devtools.build.lib.exec.SpawnRunner.SpawnExecutionContext;
Expand Down Expand Up @@ -151,11 +149,6 @@ public void report(ProgressStatus progress) {
// Intentionally left empty.
}

@Override
public MetadataInjector getMetadataInjector() {
return ActionsTestUtil.THROWING_METADATA_HANDLER;
}

@Override
public <T extends ActionContext> T getContext(Class<T> identifyingType) {
return actionContextRegistry.getInstance(identifyingType);
Expand Down
Expand Up @@ -25,7 +25,6 @@
import com.google.devtools.build.lib.actions.Artifact.ArtifactExpander;
import com.google.devtools.build.lib.actions.InputMetadataProvider;
import com.google.devtools.build.lib.actions.Spawn;
import com.google.devtools.build.lib.actions.cache.MetadataInjector;
import com.google.devtools.build.lib.exec.SpawnInputExpander;
import com.google.devtools.build.lib.exec.SpawnRunner.ProgressStatus;
import com.google.devtools.build.lib.exec.SpawnRunner.SpawnExecutionContext;
Expand Down Expand Up @@ -145,11 +144,6 @@ public void report(ProgressStatus progress) {
reportedStatus.add(progress);
}

@Override
public MetadataInjector getMetadataInjector() {
return mock(MetadataInjector.class);
}

@Override
public <T extends ActionContext> T getContext(Class<T> identifyingType) {
throw new UnsupportedOperationException();
Expand Down

0 comments on commit 0bd361f

Please sign in to comment.