Skip to content

Commit

Permalink
Remove ByteStream (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
donny-dont authored and nex3 committed May 25, 2017
1 parent 2168f61 commit 5d6ce28
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
1 change: 0 additions & 1 deletion lib/http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import 'src/client.dart';
import 'src/response.dart';

export 'src/base_client.dart';
export 'src/byte_stream.dart';
export 'src/client.dart';
export 'src/exception.dart';
export 'src/io_client.dart';
Expand Down
36 changes: 0 additions & 36 deletions lib/src/byte_stream.dart

This file was deleted.

8 changes: 0 additions & 8 deletions lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'dart:typed_data';

import 'package:collection/collection.dart';

import 'byte_stream.dart';
import 'http_unmodifiable_map.dart';

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

/// If [stream] is already a [ByteStream], returns it. Otherwise, wraps it in a
/// [ByteStream].
ByteStream toByteStream(Stream<List<int>> stream) {
if (stream is ByteStream) return stream;
return new ByteStream(stream);
}

/// Calls [onDone] once [stream] (a single-subscription [Stream]) is finished.
/// The return value, also a single-subscription [Stream] should be used in
/// place of [stream] after calling this method.
Expand Down

0 comments on commit 5d6ce28

Please sign in to comment.