Skip to content

Commit af54d65

Browse files
sellophaneGoogler
andauthored
Delete SINGLE_TARGET case as unused (#7442)
Bug: n/a Test: n/a Change-Id: Ia098cf97e93da64a93e7a812cc4f651e05802fb9 AOSP: f56b821d8cb7e18e8241dfa6692433996b744c06 Co-authored-by: Googler <[email protected]>
1 parent 77dd867 commit af54d65

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

base/src/com/google/idea/blaze/base/qsync/DependencyTracker.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
import com.google.idea.blaze.common.Label;
2121
import com.google.idea.blaze.exception.BuildException;
2222
import java.io.IOException;
23-
import java.nio.file.Path;
24-
import java.util.Optional;
2523
import java.util.Set;
26-
import javax.annotation.Nullable;
2724

2825
/**
2926
* A service that tracks what files in the project can be analyzed and what is the status of their
@@ -41,8 +38,6 @@ boolean buildDependenciesForTargets(BlazeContext context, DependencyBuildRequest
4138
/** Request to {@link #buildDependenciesForTargets(BlazeContext, DependencyBuildRequest)}. */
4239
class DependencyBuildRequest {
4340
enum RequestType {
44-
/** Build a single target and do not check if its dependencies were built. */
45-
SINGLE_TARGET,
4641
/**
4742
* Build multiple targets and mark all dependencies as built even if they produce no
4843
* artifacts.
@@ -63,10 +58,6 @@ private DependencyBuildRequest(RequestType type, ImmutableSet<Label> targets) {
6358
this.targets = targets;
6459
}
6560

66-
public static DependencyBuildRequest singleTarget(Label target) {
67-
return new DependencyBuildRequest(RequestType.SINGLE_TARGET, ImmutableSet.of(target));
68-
}
69-
7061
public static DependencyBuildRequest multiTarget(Set<Label> targets) {
7162
return new DependencyBuildRequest(RequestType.MULTIPLE_TARGETS, ImmutableSet.copyOf(targets));
7263
}

base/src/com/google/idea/blaze/base/qsync/DependencyTrackerImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ private Optional<RequestedTargets> getRequestedTargets(
9191
switch (request.requestType) {
9292
case MULTIPLE_TARGETS:
9393
return snapshot.graph().computeRequestedTargets(request.targets);
94-
case SINGLE_TARGET:
95-
return Optional.of(new RequestedTargets(request.targets, request.targets));
9694
case WHOLE_PROJECT:
9795
return Optional.of(
9896
new RequestedTargets(

0 commit comments

Comments
 (0)