Skip to content

Commit 5d6ce28

Browse files
donny-dontnex3
authored andcommitted
Remove ByteStream (#84)
1 parent 2168f61 commit 5d6ce28

File tree

3 files changed

+0
-45
lines changed

3 files changed

+0
-45
lines changed

lib/http.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import 'src/client.dart';
1111
import 'src/response.dart';
1212

1313
export 'src/base_client.dart';
14-
export 'src/byte_stream.dart';
1514
export 'src/client.dart';
1615
export 'src/exception.dart';
1716
export 'src/io_client.dart';

lib/src/byte_stream.dart

Lines changed: 0 additions & 36 deletions
This file was deleted.

lib/src/utils.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'dart:typed_data';
88

99
import 'package:collection/collection.dart';
1010

11-
import 'byte_stream.dart';
1211
import 'http_unmodifiable_map.dart';
1312

1413
/// Returns a [Map] with the values from [original] and the values from
@@ -93,13 +92,6 @@ Uint8List toUint8List(List<int> input) {
9392
return new Uint8List.fromList(input);
9493
}
9594

96-
/// If [stream] is already a [ByteStream], returns it. Otherwise, wraps it in a
97-
/// [ByteStream].
98-
ByteStream toByteStream(Stream<List<int>> stream) {
99-
if (stream is ByteStream) return stream;
100-
return new ByteStream(stream);
101-
}
102-
10395
/// Calls [onDone] once [stream] (a single-subscription [Stream]) is finished.
10496
/// The return value, also a single-subscription [Stream] should be used in
10597
/// place of [stream] after calling this method.

0 commit comments

Comments
 (0)