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

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: style fix 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 | sky/specs/style-guide.md » ('j') | 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..a589ba39d5aa76d8a9fbf7beb75ba67be0d3a8bc 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,10 +538,8 @@ abstract class MultiChildRenderObjectWrapper extends RenderObjectWrapper {
MultiChildRenderObjectWrapper({
Object key,
List<UINode> children
- }) : this.children = children == null ? _emptyList : children,
- super(
- key: key
- ) {
+ }) : super(key: key),
+ this.children = children == null ? const [] : children {
assert(!_debugHasDuplicateIds());
}
« no previous file with comments | « no previous file | sky/specs/style-guide.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698