1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-08 20:16:39 +00:00

Remove unused extension in NavigationTreeRendererTest.

Change-Id: Ieeac05bac86f06cb8fbd21169574e5b53fa3988d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/147941
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2020-05-13 21:08:56 +00:00 committed by commit-bot@chromium.org
parent fabceab5ee
commit 123f92f239

View File

@ -199,14 +199,3 @@ extension on TypeMatcher<NavigationTreeNode> {
TypeMatcher<NavigationTreeNode> havingPath(dynamic matcher) =>
having((node) => node.path, 'path', matcher);
}
extension _E<T, U> on TypeMatcher<Map<T, U>> {
TypeMatcher<Map<T, U>> containing(Map<T, dynamic> matchers) {
var result = this;
for (var entry in matchers.entries) {
result = result.having(
(map) => map[entry.key], entry.key.toString(), entry.value);
}
return result;
}
}