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

Unified Diff: sdk/lib/io/buffer_list.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (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
Index: sdk/lib/io/buffer_list.dart
diff --git a/sdk/lib/io/buffer_list.dart b/sdk/lib/io/buffer_list.dart
index 4f0a3f7b2159be328863f8c0dbfaa1c16f19e75b..a369366b1f0334f79611a19d45e253f376a499c3 100644
--- a/sdk/lib/io/buffer_list.dart
+++ b/sdk/lib/io/buffer_list.dart
@@ -25,6 +25,11 @@ class _BufferList {
if (offset != 0) _index = offset;
}
+ /** Alias for [add]. */
+ void write(List<int> buffer, [int offset = 0]) {
floitsch 2013/03/06 13:38:14 I needed to add this method so that the _BufferLis
Anders Johnsen 2013/03/06 14:31:00 SGTM, can we remove add then?
floitsch 2013/03/08 13:18:39 Maybe. I don't know how _BufferList is otherwise u
+ add(buffer, offset);
+ }
+
/**
* Returns the first buffer from the list. This returns the whole
* buffer and does not remove the buffer from the list. Use

Powered by Google App Engine
This is Rietveld 408576698