Skip to content

Commit 5efa2e3

Browse files
nshahanCommit Queue
authored and
Commit Queue
committed
[ddc] Delete unused imports in dart:_runtime
- Delete the `spread()` implementation because it is never used. Change-Id: I7b33a2fc981801608c08aa356ff9c8fb879902c2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/383682 Commit-Queue: Nicholas Shahan <[email protected]> Reviewed-by: Nate Biggs <[email protected]>
1 parent abe7940 commit 5efa2e3

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/runtime.dart

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
library dart._runtime;
77

88
import 'dart:async';
9-
import 'dart:collection';
10-
119
import 'dart:_debugger' show stackTraceMapper, trackCall;
1210
import 'dart:_foreign_helper'
1311
show
@@ -18,8 +16,7 @@ import 'dart:_foreign_helper'
1816
JS_GET_NAME,
1917
JSExportName,
2018
rest,
21-
TYPE_REF,
22-
spread;
19+
TYPE_REF;
2320
import 'dart:_interceptors'
2421
show
2522
JavaScriptBigInt,
@@ -44,33 +41,28 @@ import 'dart:_js_helper'
4441
getRtiForRecord,
4542
ImmutableMap,
4643
ImmutableSet,
47-
JsLinkedHashMap,
4844
jsObjectGetPrototypeOf,
4945
jsObjectSetPrototypeOf,
5046
NoReifyGeneric,
5147
notNull,
5248
Primitives,
5349
PrivateSymbol,
5450
ReifyFunctionTypes,
55-
TypeErrorImpl,
56-
undefined;
51+
TypeErrorImpl;
5752
import 'dart:_js_shared_embedded_names';
5853
import 'dart:_rti' as rti
5954
show
6055
bindingRtiFromList,
6156
constructorRtiCachePropertyName,
6257
createRuntimeType,
63-
findType,
6458
getFunctionParametersForDynamicChecks,
6559
getGenericFunctionBounds,
66-
getLegacyErasedRti,
6760
getRecordTypeElementTypes,
6861
getRecordTypeShapeKey,
6962
instanceType,
7063
instantiatedGenericFunctionType,
7164
interfaceTypeRecipePropertyName,
7265
isGenericFunctionType,
73-
isNullable,
7466
isRecordType,
7567
isSubtype,
7668
Rti,

sdk/lib/_internal/js_dev_runtime/private/foreign_helper.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,6 @@ class _Rest {
261261

262262
const _Rest rest = _Rest();
263263

264-
dynamic spread(args) {
265-
throw StateError('The spread function cannot be called, '
266-
'it should be compiled away.');
267-
}
268-
269264
/// Reads an embedded global.
270265
///
271266
/// The [name] should be a constant defined in the `_js_shared_embedded_names`

0 commit comments

Comments
 (0)