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

Unified Diff: pkg/observe/lib/src/change_record.dart

Issue 48293002: Remove @deprecated features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: pkg/observe/lib/src/change_record.dart
diff --git a/pkg/observe/lib/src/change_record.dart b/pkg/observe/lib/src/change_record.dart
index bb584e8f427aa2e35f0e9dc612a774094e0c21c8..c3cb3b5f1bafda66592fb1967b434e1748cfb266 100644
--- a/pkg/observe/lib/src/change_record.dart
+++ b/pkg/observe/lib/src/change_record.dart
@@ -10,13 +10,6 @@ abstract class ChangeRecord {}
/** A change record to a field of an observable object. */
class PropertyChangeRecord<T> extends ChangeRecord {
- /**
- * *Deprecated* use [name] instead.
- * The field that was changed.
- */
- @deprecated
- Symbol get field => name;
-
/** The object that changed. */
final object;
@@ -31,13 +24,6 @@ class PropertyChangeRecord<T> extends ChangeRecord {
PropertyChangeRecord(this.object, this.name, this.oldValue, this.newValue);
- /*
- * *Deprecated* instead of `record.changes(key)` simply do
- * `key == record.name`.
- */
- @deprecated
- bool changes(key) => key is Symbol && name == key;
-
String toString() =>
'#<PropertyChangeRecord $name from: $oldValue to: $newValue>';
}
@@ -60,13 +46,6 @@ class ListChangeRecord extends ChangeRecord {
}
}
- /**
- * *Deprecated* use [indexChanged] instead.
- * Returns true if the provided index was changed by this operation.
- */
- @deprecated
- bool changes(value) => indexChanged(value);
-
/** Returns true if the provided index was changed by this operation. */
bool indexChanged(otherIndex) {
// If key isn't an int, or before the index, then it wasn't changed.

Powered by Google App Engine
This is Rietveld 408576698