From 1abcda04ce48c6c1772def40e1853db6e23564ed Mon Sep 17 00:00:00 2001 From: Chirayu Krishnappa Date: Wed, 12 Feb 2014 00:00:37 -0800 Subject: [PATCH] fix(generator): remove invalid sort on elements cacheUris are sorted later. sorting the elements can be invalid (e.g. SimpleStringLiteral has == but no compareTo) --- lib/tools/template_cache_generator.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tools/template_cache_generator.dart b/lib/tools/template_cache_generator.dart index 3578a5b9a..3c896b8c3 100644 --- a/lib/tools/template_cache_generator.dart +++ b/lib/tools/template_cache_generator.dart @@ -175,7 +175,6 @@ class TemplateCollectingVisitor { var paramName = namedArg.name.label.name; if (paramName == 'preCacheUrls') { assertList(namedArg.expression).elements - ..sort() ..forEach((expression) => cacheUris.add(assertString(expression).stringValue)); }