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

Unified Diff: sdk/lib/async/stream.dart

Issue 16240008: Make StreamController be a StreamSink, not just an EventSink. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Complete rewrite. StreamController is now itself a StreamSink. Created 7 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
Index: sdk/lib/async/stream.dart
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
index 0de29194a517516241b003128471226d06800513..0a0208ba7188c537451cc8bf027f29ab9e7c6f2c 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -925,19 +925,6 @@ class StreamView<T> extends Stream<T> {
}
}
-/**
- * [EventSink] wrapper that only exposes the [EventSink] interface.
- */
-class _EventSinkView<T> extends EventSink<T> {
- final EventSink<T> _sink;
-
- _EventSinkView(this._sink);
-
- void add(T value) { _sink.add(value); }
- void addError(error) { _sink.addError(error); }
- void close() { _sink.close(); }
-}
-
/**
* The target of a [Stream.pipe] call.

Powered by Google App Engine
This is Rietveld 408576698