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

Unified Diff: sdk/lib/html/html_common/lists.dart

Issue 12510003: Fixing a number of dart:html analyzer issues (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/html_common/lists.dart
diff --git a/sdk/lib/html/html_common/lists.dart b/sdk/lib/html/html_common/lists.dart
index 03cc29e5ccded15e85c4bd2d2a90906cdab186f5..874039e05c399191c8ad71b4121c87cc844c9217 100644
--- a/sdk/lib/html/html_common/lists.dart
+++ b/sdk/lib/html/html_common/lists.dart
@@ -66,22 +66,4 @@ class Lists {
}
return accumulator;
}
-
- static String join(List<Object> list, [String separator]) {
- if (list.isEmpty) return "";
- if (list.length == 1) return "${list[0]}";
- StringBuffer buffer = new StringBuffer();
- if (separator == null || separator == "") {
- for (int i = 0; i < list.length; i++) {
- buffer.add("${list[i]}");
- }
- } else {
- buffer.add("${list[0]}");
- for (int i = 1; i < list.length; i++) {
- buffer.add(separator);
- buffer.add("${list[i]}");
- }
- }
- return buffer.toString();
- }
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698