Skip to content

Commit

Permalink
Remove dead code in thinlto test.
Browse files Browse the repository at this point in the history
The call to AnalysisMock in testFdoNoImplicitThinLto is unnecessary since the following call to setupFdoThinLtoCrosstool overrides the features.

Tested:
Existing unit tests pass with the code removed.
PiperOrigin-RevId: 351107596
  • Loading branch information
Googler authored and copybara-github committed Jan 11, 2021
1 parent 8720ff4 commit 30ceb80
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,12 +1396,6 @@ private void setupFdoThinLtoCrosstool() throws Exception {
*/
@Test
public void testFdoNoImplicitThinLto() throws Exception {
AnalysisMock.get()
.ccSupport()
.setupCcToolchainConfig(
mockToolsConfig,
CcToolchainConfig.builder()
.withFeatures(CppRuleClasses.THIN_LTO, CppRuleClasses.SUPPORTS_START_END_LIB));
scratch.file(
"pkg/BUILD",
"",
Expand Down

0 comments on commit 30ceb80

Please sign in to comment.