Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: sdk/lib/core/date_time.dart

Issue 14153003: Remove deprecated <, <=, >, and >= of DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/unittest/lib/mock.dart ('k') | tests/corelib/date_time6_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/date_time.dart
diff --git a/sdk/lib/core/date_time.dart b/sdk/lib/core/date_time.dart
index f98c009ef3848f6b13721bffd525f35c98448f28..9902b8241081ef8918987e92048276c015cb55ec 100644
--- a/sdk/lib/core/date_time.dart
+++ b/sdk/lib/core/date_time.dart
@@ -191,48 +191,6 @@ class DateTime {
/**
* Returns true if [this] occurs before [other]. The comparison is independent
* of whether the time is in UTC or in the local time zone.
- *
- * *Deprecated* Use [isBefore] instead.
- */
- @deprecated
- bool operator <(DateTime other)
- => millisecondsSinceEpoch < other.millisecondsSinceEpoch;
-
- /**
- * Returns true if [this] occurs at the same time or before [other]. The
- * comparison is independent of whether the time is in UTC or in the local
- * time zone.
- *
- * *Deprecated* Use [isAfter] instead ([:!isAfter:]).
- */
- @deprecated
- bool operator <=(DateTime other)
- => millisecondsSinceEpoch <= other.millisecondsSinceEpoch;
-
- /**
- * Returns true if [this] occurs after [other]. The comparison is independent
- * of whether the time is in UTC or in the local time zone.
- *
- * *Deprecated* Use [isAfter] instead.
- */
- @deprecated
- bool operator >(DateTime other)
- => millisecondsSinceEpoch > other.millisecondsSinceEpoch;
-
- /**
- * Returns true if [this] occurs at the same time or after [other]. The
- * comparison is independent of whether the time is in UTC or in the local
- * time zone.
- *
- * *Deprecated* Use [isBefore] instead ([:!isBefore:]).
- */
- @deprecated
- bool operator >=(DateTime other)
- => millisecondsSinceEpoch >= other.millisecondsSinceEpoch;
-
- /**
- * Returns true if [this] occurs before [other]. The comparison is independent
- * of whether the time is in UTC or in the local time zone.
*/
bool isBefore(DateTime other) {
return millisecondsSinceEpoch < other.millisecondsSinceEpoch;
« no previous file with comments | « pkg/unittest/lib/mock.dart ('k') | tests/corelib/date_time6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698