Skip to content

Commit

Permalink
Remove unused methods from CcCompilationContext.
Browse files Browse the repository at this point in the history
RELNOTES:none
PiperOrigin-RevId: 548667615
Change-Id: If06cb7520d3addf5f9c0eb286e8795af976ce49c
  • Loading branch information
oquenchil authored and copybara-github committed Jul 17, 2023
1 parent 7311f76 commit b6c986e
Showing 1 changed file with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,30 +635,6 @@ ImmutableList<String> getNonTransitiveDefines() {
return commandLineCcCompilationContext.localDefines;
}

/**
* Returns a {@code CcCompilationContext} that is based on a given {@code CcCompilationContext}
* but returns empty sets for {@link #getLooseHdrsDirs()}.
*/
public static CcCompilationContext disallowUndeclaredHeaders(
CcCompilationContext ccCompilationContext) {
return new CcCompilationContext(
ccCompilationContext.commandLineCcCompilationContext,
ccCompilationContext.compilationPrerequisites,
NestedSetBuilder.emptySet(Order.STABLE_ORDER),
ccCompilationContext.declaredIncludeSrcs,
ccCompilationContext.nonCodeInputs,
ccCompilationContext.headerInfo,
ccCompilationContext.transitiveModules,
ccCompilationContext.transitivePicModules,
ccCompilationContext.directModuleMaps,
ccCompilationContext.exportingModuleMaps,
ccCompilationContext.cppModuleMap,
ccCompilationContext.propagateModuleMapAsActionInput,
ccCompilationContext.headersCheckingMode,
ccCompilationContext.virtualToOriginalHeaders,
ccCompilationContext.headerTokens);
}

/**
* Returns a {@code CcCompilationContext} that is based on a given {@code CcCompilationContext},
* with {@code extraHeaderTokens} added to the header tokens.
Expand Down Expand Up @@ -696,10 +672,6 @@ public ImmutableList<CppModuleMap> getExportingModuleMaps() {
return exportingModuleMaps;
}

public CppConfiguration.HeadersCheckingMode getHeadersCheckingMode() {
return CppConfiguration.HeadersCheckingMode.STRICT;
}

public NestedSet<Tuple> getVirtualToOriginalHeaders() {
return virtualToOriginalHeaders;
}
Expand Down Expand Up @@ -1147,13 +1119,6 @@ public Builder addVirtualToOriginalHeaders(NestedSet<Tuple> virtualToOriginalHea
return this;
}

/** Adds a set of header tokens. */
@CanIgnoreReturnValue
public Builder addHeaderTokens(Iterable<Artifact> headerTokens) {
this.headerTokens.addAll(headerTokens);
return this;
}

/** Builds the {@link CcCompilationContext}. */
public CcCompilationContext build() {
return build(
Expand Down

0 comments on commit b6c986e

Please sign in to comment.