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: utils/pub/yaml/yaml_map.dart

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another space removed. Created 8 years, 3 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 | « utils/pub/yaml/model.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/yaml/yaml_map.dart
diff --git a/utils/pub/yaml/yaml_map.dart b/utils/pub/yaml/yaml_map.dart
index 5835cf49e0aa2a30e4151196fbdebd4c22aaaedb..f5b857f5904235ef65b18a448dab66d64bd5c506 100644
--- a/utils/pub/yaml/yaml_map.dart
+++ b/utils/pub/yaml/yaml_map.dart
@@ -7,11 +7,11 @@
* implementation, with the following differences:
*
* * It allows null, NaN, boolean, list, and map keys.
- * * It is itself Hashable.
* * It defines `==` structurally. That is, `yamlMap1 == yamlMap2` if they have
* the same contents.
+ * * It has a compatible [hashCode] method.
*/
-class YamlMap implements Map, Hashable {
+class YamlMap implements Map {
Map _map;
YamlMap() : _map = new Map();
@@ -62,7 +62,7 @@ class YamlMap implements Map, Hashable {
* A class for wrapping normally-unhashable objects that are being used as keys
* in a YamlMap.
*/
-class _WrappedHashKey implements Hashable {
+class _WrappedHashKey {
var value;
_WrappedHashKey(this.value);
« no previous file with comments | « utils/pub/yaml/model.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698