Skip to content

Commit

Permalink
[analyzer] Clean up unused parameters in library_analyzer.
Browse files Browse the repository at this point in the history
Found some unused parameters while looking through the LibraryAnalyzer.
This CL does a quick clean up of these helpers.

Change-Id: I90b2f8c6caeb9ac8e9c03b2367f33e93f5c711f8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349362
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Kallen Tu <[email protected]>
  • Loading branch information
kallentu authored and Commit Queue committed Jan 30, 2024
1 parent aff3f42 commit 442c5dc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/analyzer/lib/src/dart/analysis/library_analyzer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -867,12 +867,8 @@ class LibraryAnalyzer {
}) {
directive.element = element;
_resolveNamespaceDirective(
directive: directive,
primaryUriNode: directive.uri,
primaryUriState: state.uris.primary,
configurationNodes: directive.configurations,
configurationUris: state.uris.configurations,
selectedUriState: state.selectedUri,
);
if (state is LibraryExportWithUri) {
final selectedUriStr = state.selectedUri.relativeUriStr;
Expand Down Expand Up @@ -926,12 +922,8 @@ class LibraryAnalyzer {
directive.element = element;
directive.prefix?.staticElement = element.prefix?.element;
_resolveNamespaceDirective(
directive: directive,
primaryUriNode: directive.uri,
primaryUriState: state.uris.primary,
configurationNodes: directive.configurations,
configurationUris: state.uris.configurations,
selectedUriState: state.selectedUri,
);
if (state is LibraryImportWithUri) {
final selectedUriStr = state.selectedUri.relativeUriStr;
Expand Down Expand Up @@ -977,10 +969,6 @@ class LibraryAnalyzer {
}

void _resolveNamespaceDirective({
required NamespaceDirectiveImpl directive,
required StringLiteralImpl primaryUriNode,
required file_state.DirectiveUri primaryUriState,
required file_state.DirectiveUri selectedUriState,
required List<Configuration> configurationNodes,
required List<file_state.DirectiveUri> configurationUris,
}) {
Expand Down

0 comments on commit 442c5dc

Please sign in to comment.