Skip to content

Commit

Permalink
Remove section
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerhu committed Jul 26, 2023
1 parent 1d7d527 commit 101abd7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion base/src/META-INF/blaze-base.xml
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,6 @@
<BlazeTestEventsHandler implementation="com.google.idea.blaze.base.run.smrunner.BlazeGenericTestEventsHandler" order="last"/>
<ProjectViewDefaultValueProvider implementation="com.google.idea.blaze.base.projectview.section.sections.DirectorySection$DirectoriesProjectViewDefaultValueProvider"/>
<ProjectViewDefaultValueProvider implementation="com.google.idea.blaze.base.projectview.section.sections.AutomaticallyDeriveTargetsSection$DefaultValueProvider"/>
<ProjectViewDefaultValueProvider implementation="com.google.idea.blaze.base.projectview.section.sections.SyncManualTargetsSection$DefaultValueProvider"/>
<ProjectViewDefaultValueProvider implementation="com.google.idea.blaze.base.projectview.section.sections.TargetSection$TargetsProjectViewDefaultValueProvider"/>
<ProjectViewDefaultValueProvider implementation="com.google.idea.blaze.base.projectview.section.sections.AdditionalLanguagesSection$AdditionalLanguagesDefaultValueProvider"/>
<PrefetchFileSource implementation="com.google.idea.blaze.base.prefetch.ProtoPrefetchFileSource"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,29 +69,4 @@ public String quickDocs() {
return "If set to true, project targets will be derived from the directories.";
}
}

static class DefaultValueProvider implements ProjectViewDefaultValueProvider {
@Override
public ProjectView addProjectViewDefaultValue(
BuildSystemName buildSystemName,
ProjectViewSet projectViewSet,
ProjectView topLevelProjectView) {
if (!topLevelProjectView.getSectionsOfType(KEY).isEmpty()) {
return topLevelProjectView;
}
return ProjectView.builder(topLevelProjectView)
.add(
TextBlockSection.of(
TextBlock.of(
"# Automatically targets tagged as manual to be synced")))
.add(ScalarSection.builder(KEY).set(false))
.add(TextBlockSection.of(TextBlock.newLine()))
.build();
}

@Override
public SectionKey<?, ?> getSectionKey() {
return KEY;
}
}
}

0 comments on commit 101abd7

Please sign in to comment.