| Index: lib/compiler/implementation/lib/mockimpl.dart
|
| diff --git a/lib/compiler/implementation/lib/mockimpl.dart b/lib/compiler/implementation/lib/mockimpl.dart
|
| index 1e8135c3e1d205d92cba37d104eb5d99e7cacd46..4797f9435f24d74e0c51cb85e44562697c5f9c85 100644
|
| --- a/lib/compiler/implementation/lib/mockimpl.dart
|
| +++ b/lib/compiler/implementation/lib/mockimpl.dart
|
| @@ -166,18 +166,6 @@ class StringBase {
|
| }
|
| }
|
|
|
| -class TimeZoneImplementation implements TimeZone {
|
| - const TimeZoneImplementation.utc() : isUtc = true;
|
| - TimeZoneImplementation.local() : isUtc = false;
|
| -
|
| - bool operator ==(Object other) {
|
| - if (!(other is TimeZoneImplementation)) return false;
|
| - return isUtc == other.isUtc;
|
| - }
|
| -
|
| - final bool isUtc;
|
| -}
|
| -
|
| class DateImplementation implements Date {
|
| final int value;
|
| final bool _isUtc;
|
| @@ -196,17 +184,6 @@ class DateImplementation implements Date {
|
| _asJs();
|
| }
|
|
|
| - DateImplementation.withTimeZone(int years,
|
| - int month,
|
| - int day,
|
| - int hours,
|
| - int minutes,
|
| - int seconds,
|
| - int milliseconds,
|
| - TimeZoneImplementation timeZone)
|
| - : this(years, month, day, hours, minutes, seconds, milliseconds,
|
| - timeZone.isUtc);
|
| -
|
| DateImplementation.now()
|
| : _isUtc = false,
|
| value = Primitives.dateNow() {
|
| @@ -296,13 +273,6 @@ class DateImplementation implements Date {
|
| return new DateImplementation.fromEpoch(value, true);
|
| }
|
|
|
| - Date changeTimeZone(TimeZone targetTimeZone) {
|
| - if (targetTimeZone === null) {
|
| - targetTimeZone = new TimeZoneImplementation.local();
|
| - }
|
| - return new Date.fromEpoch(value, targetTimeZone.isUtc);
|
| - }
|
| -
|
| String get timeZoneName() {
|
| if (isUtc()) return "UTC";
|
| return Primitives.getTimeZoneName(this);
|
|
|