| Index: sdk/lib/html/src/dart2js_Conversions.dart
|
| diff --git a/sdk/lib/html/src/dart2js_Conversions.dart b/sdk/lib/html/src/dart2js_Conversions.dart
|
| index cdfa5eafe3c9dc6337c09332164537c18f3bdba0..28023d61b21b3afbd070750e93e85b33095df988 100644
|
| --- a/sdk/lib/html/src/dart2js_Conversions.dart
|
| +++ b/sdk/lib/html/src/dart2js_Conversions.dart
|
| @@ -92,57 +92,3 @@ _convertDartToNative_ImageData(ImageData imageData) {
|
| }
|
| return imageData;
|
| }
|
| -
|
| -
|
| -// -----------------------------------------------------------------------------
|
| -
|
| -/**
|
| - * Converts a native IDBKey into a Dart object.
|
| - *
|
| - * May return the original input. May mutate the original input (but will be
|
| - * idempotent if mutation occurs). It is assumed that this conversion happens
|
| - * on native IDBKeys on all paths that return IDBKeys from native DOM calls.
|
| - *
|
| - * If necessary, JavaScript Dates are converted into Dart Dates.
|
| - */
|
| -_convertNativeToDart_IDBKey(nativeKey) {
|
| - containsDate(object) {
|
| - if (isJavaScriptDate(object)) return true;
|
| - if (object is List) {
|
| - for (int i = 0; i < object.length; i++) {
|
| - if (containsDate(object[i])) return true;
|
| - }
|
| - }
|
| - return false; // number, string.
|
| - }
|
| - if (containsDate(nativeKey)) {
|
| - throw new UnimplementedError('IDBKey containing Date');
|
| - }
|
| - // TODO: Cache conversion somewhere?
|
| - return nativeKey;
|
| -}
|
| -
|
| -/**
|
| - * Converts a Dart object into a valid IDBKey.
|
| - *
|
| - * May return the original input. Does not mutate input.
|
| - *
|
| - * If necessary, [dartKey] may be copied to ensure all lists are converted into
|
| - * JavaScript Arrays and Dart Dates into JavaScript Dates.
|
| - */
|
| -_convertDartToNative_IDBKey(dartKey) {
|
| - // TODO: Implement.
|
| - return dartKey;
|
| -}
|
| -
|
| -
|
| -
|
| -/// May modify original. If so, action is idempotent.
|
| -_convertNativeToDart_IDBAny(object) {
|
| - return convertNativeToDart_AcceptStructuredClone(object, mustCopy: false);
|
| -}
|
| -
|
| -
|
| -const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date.
|
| -const _annotation_Creates_IDBKey = const Creates(_idbKey);
|
| -const _annotation_Returns_IDBKey = const Returns(_idbKey);
|
|
|