Skip to content

Commit

Permalink
Remove unused isTargetExplicit method. All usages were deleted in un…
Browse files Browse the repository at this point in the history
…known commit.

    RELNOTES: None
    PiperOrigin-RevId: 241799355
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent b884a5d commit 64807e1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.google.devtools.build.lib.cmdline.TargetParsingException;
import com.google.devtools.build.lib.pkgcache.FilteringPolicies;
import com.google.devtools.build.lib.pkgcache.FilteringPolicy;
import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.skyframe.SkyFunction.Environment;
import com.google.devtools.build.skyframe.SkyKey;
import com.google.devtools.build.skyframe.ValueOrException;
Expand Down Expand Up @@ -55,14 +54,10 @@ public static ImmutableList<Label> expandTargetPatterns(
Environment env, List<String> targetPatterns, FilteringPolicy filteringPolicy)
throws InvalidTargetPatternException, InterruptedException {

if (targetPatterns.isEmpty()) {
return ImmutableList.of();
}

// First parse the patterns, and throw any errors immediately.
List<TargetPatternValue.TargetPatternKey> patternKeys = new ArrayList<>();
for (TargetPatternValue.TargetPatternSkyKeyOrException keyOrException :
TargetPatternValue.keys(targetPatterns, filteringPolicy, PathFragment.EMPTY_FRAGMENT)) {
TargetPatternValue.keys(targetPatterns, filteringPolicy, "")) {

try {
patternKeys.add(keyOrException.getSkyKey());
Expand Down

0 comments on commit 64807e1

Please sign in to comment.