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