2bcc415510
In a given library, every import directive has a set of "used elements," the subset of elements provided by the import which are used in the library. In a given library, an import directive is "unnecessary" if there exists at least one other import directive with the same prefix as the aforementioned import directive, and a "used elements" set which is a proper superset of the aforementioned import directive's "used elements" set. https://github.com/dart-lang/sdk/issues/44569 Change-Id: I4da43be36837cdafb07a0ab67a94e644f351e593 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/177221 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>