mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:59:47 +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:
parent
fabceab5ee
commit
123f92f239
|
@ -199,14 +199,3 @@ extension on TypeMatcher<NavigationTreeNode> {
|
||||||
TypeMatcher<NavigationTreeNode> havingPath(dynamic matcher) =>
|
TypeMatcher<NavigationTreeNode> havingPath(dynamic matcher) =>
|
||||||
having((node) => node.path, 'path', 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue