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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1178623002: Remove _emptyList from fn2.dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index 60acbf0a7c8ce720baa249c23493bb1f521c6428..ca97bdcc1754735d172a60af437dcdf5664b1758 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -530,8 +530,6 @@ class CustomPaint extends OneChildRenderObjectWrapper {
}
-final List<UINode> _emptyList = new List<UINode>();
-
abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
// In MultiChildRenderObjectWrapper subclasses, slots are RenderObject nodes
@@ -540,7 +538,7 @@ abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
MultiChildRenderObjectWrapper({
Object key,
List<UINode> children
- }) : this.children = children == null ? _emptyList : children,
+ }) : this.children = children == null ? const [] : children,
Hixie 2015/06/10 19:39:17 const <UINode>[]
super(
key: key
) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698