Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
index 174bc54670108b14452a5b09d4b337062cfce69a..5e94d58999f4f382716699c9430c09b6b5e0602c 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart |
@@ -750,23 +750,6 @@ stackPrint(exception) { |
// Forward to dart:_js_helper to create a _StackTrace object. |
stackTrace(exception) => getTraceFromException(exception); |
-/// |
-/// Implements a sequence of .? operations. |
-/// |
-/// Will call each successive callback, unless one returns null, which stops |
-/// the sequence. |
-/// |
-nullSafe(obj, @rest callbacks) => JS( |
- '', |
- '''(() => { |
- if ($obj == null) return $obj; |
- for (let callback of $callbacks) { |
- $obj = callback($obj); |
- if ($obj == null) break; |
- } |
- return $obj; |
-})()'''); |
- |
final _value = JS('', 'Symbol("_value")'); |
/// |