From 7f649e9ebc009e062bcd5cc233a9bbd33e5bc4cb Mon Sep 17 00:00:00 2001 From: Keerti Parthasarathy Date: Tue, 10 Mar 2020 20:30:01 +0000 Subject: [PATCH] Remove a missed usage of .analysis_options. Change-Id: I552fa197aa13b1987b6b348295a37d1e61ba7775 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138961 Reviewed-by: Konstantin Shcheglov Commit-Queue: Keerti Parthasarathy --- pkg/analyzer/lib/src/dart/analysis/context_locator.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkg/analyzer/lib/src/dart/analysis/context_locator.dart b/pkg/analyzer/lib/src/dart/analysis/context_locator.dart index 7edff35a045..7bfa83fcdc3 100644 --- a/pkg/analyzer/lib/src/dart/analysis/context_locator.dart +++ b/pkg/analyzer/lib/src/dart/analysis/context_locator.dart @@ -41,11 +41,6 @@ class ContextLocatorImpl implements ContextLocator { */ static const String ANALYSIS_OPTIONS_NAME = 'analysis_options.yaml'; - /** - * The old name of the analysis options file. - */ - static const String OLD_ANALYSIS_OPTIONS_NAME = '.analysis_options'; - /** * The name of the packages file. */ @@ -397,8 +392,7 @@ class ContextLocatorImpl implements ContextLocator { * folder does not contain an analysis options file. */ File _getOptionsFile(Folder folder) => - _getFile(folder, ANALYSIS_OPTIONS_NAME) ?? - _getFile(folder, OLD_ANALYSIS_OPTIONS_NAME); + _getFile(folder, ANALYSIS_OPTIONS_NAME); /** * Return the packages file in the given [folder], or `null` if the folder