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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart

Issue 12295014: Remove deprecated Strings class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « samples/markdown/test/markdown_test.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index e7005aa30d5db50d09553a726e7037076b9c821a..fad1d02b36521240804297b072f1d242b4f8fb80 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -202,33 +202,6 @@ patch class String {
}
}
-// Patch for String implementation.
-patch class Strings {
- patch static String join(Iterable<String> strings, String separator) {
- checkNull(strings);
- if (separator is !String) throw new ArgumentError(separator);
- return stringJoinUnchecked(_toJsStringArray(strings), separator);
- }
-
- patch static String concatAll(Iterable<String> strings) {
- return stringJoinUnchecked(_toJsStringArray(strings), "");
- }
-
- static List _toJsStringArray(Iterable<String> strings) {
- checkNull(strings);
- var array;
- if (!isJsArray(strings)) {
- strings = new List.from(strings);
- }
- final length = strings.length;
- for (int i = 0; i < length; i++) {
- final string = strings[i];
- if (string is !String) throw new ArgumentError(string);
- }
- return strings;
- }
-}
-
patch class RegExp {
patch factory RegExp(String pattern,
{bool multiLine: false,
« no previous file with comments | « samples/markdown/test/markdown_test.dart ('k') | sdk/lib/_internal/dartdoc/lib/dartdoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698