Skip to content

Commit

Permalink
DAS: Remove unused createAnalysisOptionsFile
Browse files Browse the repository at this point in the history
Change-Id: I03a452d6b93d2d25e1da9cabc1c120ebe468562d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216501
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
  • Loading branch information
srawlins authored and commit-bot@chromium.org committed Oct 13, 2021
1 parent b28a193 commit 44ecf45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion pkg/analysis_server/test/analysis/get_hover_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,6 @@ void f() {
}

Future<void> test_nonNullable() async {
createAnalysisOptionsFile(experiments: ['non-nullable']);
addTestFile('''
int? f(double? a) => null;
Expand Down
13 changes: 0 additions & 13 deletions pkg/analysis_server/test/analysis_abstract.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,6 @@ class AbstractAnalysisTest with ResourceProviderMixin {
return testFile;
}

/// Create an analysis options file based on the given arguments.
void createAnalysisOptionsFile({List<String>? experiments}) {
var buffer = StringBuffer();
if (experiments != null) {
buffer.writeln('analyzer:');
buffer.writeln(' enable-experiment:');
for (var experiment in experiments) {
buffer.writeln(' - $experiment');
}
}
newAnalysisOptionsYamlFile(projectPath, content: buffer.toString());
}

AnalysisServer createAnalysisServer() {
//
// Create an SDK in the mock file system.
Expand Down

0 comments on commit 44ecf45

Please sign in to comment.