| Index: pkg/compiler/lib/src/universe/world_impact.dart
|
| diff --git a/pkg/compiler/lib/src/universe/world_impact.dart b/pkg/compiler/lib/src/universe/world_impact.dart
|
| index 040de93fbb24013bcedbc02cf6207cd9b8dce0cb..401a21e06cc1f2fed2066ea07eacf2249aeca846 100644
|
| --- a/pkg/compiler/lib/src/universe/world_impact.dart
|
| +++ b/pkg/compiler/lib/src/universe/world_impact.dart
|
| @@ -34,8 +34,6 @@ class WorldImpact {
|
|
|
| Iterable<TypeUse> get typeUses => const <TypeUse>[];
|
|
|
| - Iterable<LocalFunctionElement> get closures => const <LocalFunctionElement>[];
|
| -
|
| String toString() => dump(this);
|
|
|
| static String dump(WorldImpact worldImpact) {
|
| @@ -55,7 +53,6 @@ class WorldImpact {
|
| add('dynamic uses', worldImpact.dynamicUses);
|
| add('static uses', worldImpact.staticUses);
|
| add('type uses', worldImpact.typeUses);
|
| - add('closures', worldImpact.closures);
|
| }
|
| }
|
|
|
| @@ -104,18 +101,6 @@ class WorldImpactBuilder {
|
| Iterable<StaticUse> get staticUses {
|
| return _staticUses != null ? _staticUses : const <StaticUse>[];
|
| }
|
| -
|
| - void registerClosure(LocalFunctionElement element) {
|
| - if (_closures == null) {
|
| - _closures = new Setlet<LocalFunctionElement>();
|
| - }
|
| - _closures.add(element);
|
| - }
|
| -
|
| - Iterable<LocalFunctionElement> get closures {
|
| - return _closures != null
|
| - ? _closures : const <LocalFunctionElement>[];
|
| - }
|
| }
|
|
|
| /// Mutable implementation of [WorldImpact] used to transform
|
| @@ -170,9 +155,6 @@ class TransformedWorldImpact implements WorldImpact {
|
| return _staticUses != null ? _staticUses : worldImpact.staticUses;
|
| }
|
|
|
| - @override
|
| - Iterable<LocalFunctionElement> get closures => worldImpact.closures;
|
| -
|
| String toString() {
|
| StringBuffer sb = new StringBuffer();
|
| sb.write('TransformedWorldImpact($worldImpact)');
|
|
|