| Index: lib/src/utils.dart
|
| diff --git a/lib/src/utils.dart b/lib/src/utils.dart
|
| index 24737b4d270ced2b89f798f71fb8f7be942dc66b..4b554ee53ecb93b01f83a3f231b7d42b29b43168 100644
|
| --- a/lib/src/utils.dart
|
| +++ b/lib/src/utils.dart
|
| @@ -208,16 +208,6 @@ Map mergeMaps(Map map1, Map map2) {
|
| return result;
|
| }
|
|
|
| -/// Returns a sink that maps events sent to [original] using [fn].
|
| -StreamSink mapSink(StreamSink original, fn(event)) {
|
| - var controller = new StreamController(sync: true);
|
| - controller.stream.listen(
|
| - (event) => original.add(fn(event)),
|
| - onError: (error, stackTrace) => original.addError(error, stackTrace),
|
| - onDone: () => original.close());
|
| - return controller.sink;
|
| -}
|
| -
|
| /// Like [runZoned], but [zoneValues] are set for the callbacks in
|
| /// [zoneSpecification] and [onError].
|
| runZonedWithValues(body(), {Map zoneValues,
|
|
|