Skip to content

Commit ca41835

Browse files
Remove unused dart:async imports (#470)
Since Dart 2.1, Future and Stream have been exported from dart:core
1 parent ba03ec1 commit ca41835

11 files changed

+0
-14
lines changed

lib/http.dart

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
/// A composable, [Future]-based library for making HTTP requests.
6-
import 'dart:async';
76
import 'dart:convert';
87
import 'dart:typed_data';
98

lib/src/base_client.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:convert';
76
import 'dart:typed_data';
87

lib/src/base_request.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:collection';
76

87
import 'byte_stream.dart';

lib/src/client.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:convert';
76
import 'dart:typed_data';
87

lib/src/mock_client.dart

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
6-
75
import 'base_client.dart';
86
import 'base_request.dart';
97
import 'byte_stream.dart';

lib/src/multipart_file.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:convert';
76

87
import 'package:http_parser/http_parser.dart';

lib/src/multipart_file_io.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:io';
76

87
import 'package:http_parser/http_parser.dart';

lib/src/multipart_file_stub.dart

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
6-
75
import 'package:http_parser/http_parser.dart';
86

97
import 'multipart_file.dart';

lib/src/multipart_request.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:convert';
76
import 'dart:math';
87

lib/src/response.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
65
import 'dart:convert';
76
import 'dart:typed_data';
87

lib/src/streamed_response.dart

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:async';
6-
75
import 'base_request.dart';
86
import 'base_response.dart';
97
import 'byte_stream.dart';

0 commit comments

Comments
 (0)