Skip to content

Commit

Permalink
Remove unused dart:async imports (#1097)
Browse files Browse the repository at this point in the history
* Remove unused dart:async imports

Since Dart 2.1, Future and Stream have been exported from dart:core

* Run grinder
  • Loading branch information
MichaelRFairhurst authored Oct 5, 2020
1 parent f843f96 commit 82b2779
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 21 deletions.
1 change: 0 additions & 1 deletion bin/sass.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';
import 'dart:isolate';

import 'package:path/path.dart' as p;
Expand Down
2 changes: 0 additions & 2 deletions lib/sass.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
/// We strongly recommend importing this library with the prefix `sass`.
library sass;

import 'dart:async';

import 'package:source_maps/source_maps.dart';

import 'src/async_import_cache.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/async_compile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';
import 'dart:convert';

import 'package:path/path.dart' as p;
Expand Down
1 change: 0 additions & 1 deletion lib/src/async_environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';
import 'dart:collection';

import 'package:meta/meta.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/async_import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';

import 'package:collection/collection.dart';
import 'package:path/path.dart' as p;
import 'package:tuple/tuple.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/compile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_compile.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 193c9bc1905022e881636f4d6359c906146abcb3
// Checksum: bca3a79dd4a5c3905b07003b123172f3c876d2de
//
// ignore_for_file: unused_import

Expand Down
2 changes: 1 addition & 1 deletion lib/src/environment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_environment.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: d304e1c5208019bca99df0678c3fdb4d09776a2b
// Checksum: 9f4ee98a1c9e90d8d5277e0c2b0355460cda8788
//
// ignore_for_file: unused_import

Expand Down
1 change: 0 additions & 1 deletion lib/src/executable/compile_stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';
import 'dart:convert';

import 'package:path/path.dart' as p;
Expand Down
1 change: 0 additions & 1 deletion lib/src/executable/repl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';
import 'dart:math' as math;

import 'package:cli_repl/cli_repl.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_import_cache.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: 8f54034c56e0d38fc8c90ad4d5f017628cab6190
// Checksum: 5293a11e290c86829547ddd982ee3b1b1536dc73
//
// ignore_for_file: unused_import

Expand Down
2 changes: 0 additions & 2 deletions lib/src/importer/node/interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';

import 'package:tuple/tuple.dart';

class NodeImporter {
Expand Down
2 changes: 0 additions & 2 deletions lib/src/io/interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';

import 'package:watcher/watcher.dart';

/// An output sink that writes to this process's standard error.
Expand Down
3 changes: 1 addition & 2 deletions lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1581,8 +1581,7 @@ relase. For details, see http://bit.ly/moz-document.
break;
}
} else if (named.isNotEmpty) {
error(
"Positional arguments must come before keyword arguments.",
error("Positional arguments must come before keyword arguments.",
expression.span);
} else {
positional.add(expression);
Expand Down
2 changes: 0 additions & 2 deletions lib/src/sync_package_resolver/node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:async';

class SyncPackageResolver {
static final _error =
UnsupportedError('SyncPackageResolver is not supported in JS.');
Expand Down
1 change: 0 additions & 1 deletion lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import 'dart:async';
import 'dart:math' as math;

import 'package:charcode/charcode.dart';
Expand Down

0 comments on commit 82b2779

Please sign in to comment.