aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build
diff options
context:
space:
mode:
authorGravatar cparsons <cparsons@google.com>2017-11-28 08:40:45 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-28 08:42:48 -0800
commit059b52b71b509a0d94cbb5ad688c04af6b9e22b4 (patch)
tree9d936244289d58bf799ec84cf32c07ff343d53dc /src/main/java/com/google/devtools/build
parentb64119807b014d9f3b99fb8a02e22daf1a8299b6 (diff)
Remove dead code from CompilationSupport
RELNOTES: None. PiperOrigin-RevId: 177165649
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java74
1 files changed, 1 insertions, 73 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java
index d789bc0b84..651ce9cb58 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java
@@ -560,13 +560,6 @@ public class CompilationSupport {
.build();
}
- /** Returns a list of framework search path flags for clang actions. */
- static Iterable<String> commonFrameworkFlags(
- ObjcProvider provider, RuleContext ruleContext, ApplePlatform applePlaform) {
- return Interspersing.beforeEach("-F",
- commonFrameworkNames(provider, ruleContext, applePlaform));
- }
-
/** Returns a list of frameworks for clang actions. */
static Iterable<String> commonFrameworkNames(
ObjcProvider provider, RuleContext ruleContext, ApplePlatform platform) {
@@ -771,26 +764,6 @@ public class CompilationSupport {
}
}
- /**
- * Registers all actions necessary to compile this rule's sources and archive them.
- *
- * @param compilationArtifacts collection of artifacts required for the compilation
- * @param objcProvider provides all compiling and linking information to register these actions
- * @return this compilation support
- * @throws RuleErrorException for invalid crosstool files
- */
- CompilationSupport registerCompileAndArchiveActions(
- CompilationArtifacts compilationArtifacts,
- ObjcProvider objcProvider) throws RuleErrorException, InterruptedException {
- return registerCompileAndArchiveActions(
- compilationArtifacts,
- objcProvider,
- ExtraCompileArgs.NONE,
- ImmutableList.<PathFragment>of(),
- toolchain,
- maybeGetFdoSupport());
- }
-
/**
* Registers all actions necessary to compile this rule's sources and archive them.
*
@@ -842,21 +815,6 @@ public class CompilationSupport {
}
/**
- * Registers all actions necessary to compile this rule's sources and archive them.
- *
- * @param common common information about this rule and its dependencies
- * @param extraCompileArgs args to be added to compile actions
- * @return this compilation support
- * @throws RuleErrorException for invalid crosstool files
- */
- CompilationSupport registerCompileAndArchiveActions(
- ObjcCommon common, ExtraCompileArgs extraCompileArgs)
- throws RuleErrorException, InterruptedException {
- return registerCompileAndArchiveActions(
- common, extraCompileArgs, ImmutableList.<PathFragment>of());
- }
-
- /**
* Registers an action to create an archive artifact by fully (statically) linking all transitive
* dependencies of this rule.
*
@@ -873,36 +831,6 @@ public class CompilationSupport {
}
/**
- * Registers an action to create an archive artifact by fully (statically) linking all transitive
- * dependencies of this rule *except* for dependencies given in {@code avoidsDeps}.
- *
- * @param objcProvider provides all compiling and linking information to create this artifact
- * @param outputArchive the output artifact for this action
- * @param avoidsDeps list of providers with dependencies that should not be linked into the output
- * artifact
- */
- public CompilationSupport registerFullyLinkActionWithAvoids(
- ObjcProvider objcProvider, Artifact outputArchive, Iterable<ObjcProvider> avoidsDeps)
- throws InterruptedException {
- ImmutableSet.Builder<Artifact> avoidsDepsArtifacts = ImmutableSet.builder();
-
- for (ObjcProvider avoidsProvider : avoidsDeps) {
- avoidsDepsArtifacts.addAll(avoidsProvider.getObjcLibraries())
- .addAll(avoidsProvider.get(IMPORTED_LIBRARY))
- .addAll(avoidsProvider.getCcLibraries());
- }
- ImmutableList<Artifact> depsArtifacts = ImmutableList.<Artifact>builder()
- .addAll(objcProvider.getObjcLibraries())
- .addAll(objcProvider.get(IMPORTED_LIBRARY))
- .addAll(objcProvider.getCcLibraries()).build();
- return registerFullyLinkAction(
- objcProvider,
- outputArchive,
- toolchain,
- maybeGetFdoSupport());
- }
-
- /**
* Returns a provider that collects this target's instrumented sources as well as those of its
* dependencies.
*
@@ -1675,7 +1603,7 @@ public class CompilationSupport {
}
}
- CompilationSupport registerGenerateUmbrellaHeaderAction(
+ private CompilationSupport registerGenerateUmbrellaHeaderAction(
Artifact umbrellaHeader, Iterable<Artifact> publicHeaders) {
ruleContext.registerAction(
new UmbrellaHeaderAction(