Remove unused argument typeArguments from MigrationResolutionHooksImpl._transformCollectionElements.

Change-Id: I6c66b118d24419cae63cf0c6ad93d395c89b52cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204300
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Paul Berry 2021-06-18 22:17:46 +00:00 committed by commit-bot@chromium.org
parent 0ab30d074d
commit 685a0782b6

View file

@ -426,7 +426,7 @@ class MigrationResolutionHooksImpl
node,
() => node.elements,
() => _collectionElements[node] ??=
_transformCollectionElements(node.elements, node.typeArguments));
_transformCollectionElements(node.elements));
@override
List<CollectionElement> getSetOrMapElements(SetOrMapLiteral node) =>
@ -434,7 +434,7 @@ class MigrationResolutionHooksImpl
node,
() => node.elements,
() => _collectionElements[node] ??=
_transformCollectionElements(node.elements, node.typeArguments));
_transformCollectionElements(node.elements));
@override
DartType getTypeParameterBound(TypeParameterElementImpl element) {
@ -808,7 +808,7 @@ class MigrationResolutionHooksImpl
}
List<CollectionElement> _transformCollectionElements(
NodeList<CollectionElement> elements, TypeArgumentList typeArguments) {
NodeList<CollectionElement> elements) {
return elements
.map(_transformCollectionElement)
.where((e) => e != null)