diff options
author | 2015-12-17 19:10:33 +0000 | |
---|---|---|
committer | 2015-12-17 21:07:54 +0000 | |
commit | 3fc8397ed1b7cd2b4ec7255d70a43502c5c8b7bc (patch) | |
tree | e1a585deea46de69b8318f2aac3d32a20ed9b036 /src/main | |
parent | e342196551687b70c5d44c430202fcef00cedbe7 (diff) |
Delete unused method related to jars in srcs
--
MOS_MIGRATED_REVID=110472320
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java index ba0e08d83f..e634244972 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java @@ -16,7 +16,6 @@ package com.google.devtools.build.lib.rules.java; import static com.google.devtools.build.lib.analysis.config.BuildConfiguration.StrictDepsMode.OFF; import com.google.common.annotations.VisibleForTesting; -import com.google.common.base.Function; import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.devtools.build.lib.actions.Artifact; @@ -372,27 +371,6 @@ public class JavaCompilationHelper extends BaseJavaCompilationHelper { return jar; } - /** - * Creates actions that create ijars from generated jars that are an input to - * the Java target. - * - * @return the generated ijars or original jars that are not generated by a - * genrule - */ - public Iterable<Artifact> filterGeneratedJarsThroughIjar(Iterable<Artifact> jars) { - if (!getJavaConfiguration().getUseIjars()) { - return jars; - } - // We need to copy this list in order to avoid generating a new action each time the iterator - // is enumerated - return ImmutableList.copyOf(Iterables.transform(jars, new Function<Artifact, Artifact>() { - @Override - public Artifact apply(Artifact jar) { - return !jar.isSourceArtifact() ? createIjarAction(jar, true) : jar; - } - })); - } - private void addArgsAndJarsToAttributes(JavaCompilationArgs args, Iterable<Artifact> directJars) { // Can only be non-null when isStrict() returns true. if (directJars != null) { |