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

Unified Diff: sdk/lib/core/string_buffer.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/core/string_buffer.dart
diff --git a/sdk/lib/core/string_buffer.dart b/sdk/lib/core/string_buffer.dart
index 07d3277066e8832c6077c805a8ed37aee8ebe77d..3b0d5b47adc856d77549387dd8dca4df9167aad4 100644
--- a/sdk/lib/core/string_buffer.dart
+++ b/sdk/lib/core/string_buffer.dart
@@ -23,14 +23,6 @@ class StringBuffer implements StringSink {
/** Returns whether the buffer is empty. This is a constant-time operation. */
bool get isEmpty => length == 0;
- /**
- * Converts [obj] to a string and adds it to the buffer.
- *
- * *Deprecated*. Use [write] instead.
- */
- @deprecated
- void add(Object obj) => write(obj);
-
external void write(Object obj);
void writeAll(Iterable objects) {
@@ -42,32 +34,12 @@ class StringBuffer implements StringSink {
write("\n");
}
- /**
- * Adds the string representation of [charCode] to the buffer.
- *
- * *Deprecated* Use [writeCharCode] instead.
- */
- @deprecated
- void addCharCode(int charCode) {
- writeCharCode(charCode);
- }
-
/// Adds the string representation of [charCode] to the buffer.
void writeCharCode(int charCode) {
write(new String.fromCharCode(charCode));
}
/**
- * Adds all items in [objects] to the buffer.
- *
- * *Deprecated*. Use [writeAll] instead.
- */
- @deprecated
- void addAll(Iterable objects) {
- for (Object obj in objects) write(obj);
- }
-
- /**
* Clears the string buffer.
*
* *Deprecated*.

Powered by Google App Engine
This is Rietveld 408576698