Skip to content

Commit

Permalink
Remove unnecessary imports (#1177)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
  • Loading branch information
srawlins and nex3 authored Dec 30, 2020
1 parent 137794c commit 006e6aa
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 17 deletions.
3 changes: 0 additions & 3 deletions lib/src/ast/sass/expression/if.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import 'package:source_span/source_span.dart';

import '../../../ast/sass.dart';
import '../../../visitor/interface/expression.dart';
import '../expression.dart';
import '../argument_invocation.dart';
import '../callable_invocation.dart';

/// A ternary expression.
///
Expand Down
1 change: 0 additions & 1 deletion lib/src/async_import_cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:tuple/tuple.dart';

import 'ast/sass.dart';
import 'importer.dart';
import 'importer/result.dart';
import 'importer/utils.dart';
import 'io.dart';
import 'logger.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/callable/built_in.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import 'package:tuple/tuple.dart';
import '../ast/sass.dart';
import '../callable.dart';
import '../value.dart';
import 'async_built_in.dart';

typedef _Callback = Value Function(List<Value> arguments);

Expand Down
5 changes: 3 additions & 2 deletions lib/src/functions/color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,11 @@ void _checkAngle(SassNumber angle, [String name]) {
void _checkPercent(SassNumber number, String name) {
if (number.hasUnit('%')) return;

warn("\$$name: Passing a number without unit % is deprecated.\n"
warn(
"\$$name: Passing a number without unit % is deprecated.\n"
"\n"
"To preserve current behavior: \$$name${_removeUnits(number)} * 1%",
deprecation: true);
deprecation: true);
}

/// Returns the right-hand side of an expression that would remove all units
Expand Down
3 changes: 1 addition & 2 deletions 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: ac91c195e290010a7e104f832a00a5ebb41a127a
// Checksum: 6ac1ee07d6b46134f1616d82782180f1cc3b6d81
//
// ignore_for_file: unused_import

Expand All @@ -15,7 +15,6 @@ import 'package:tuple/tuple.dart';

import 'ast/sass.dart';
import 'importer.dart';
import 'importer/result.dart';
import 'importer/utils.dart';
import 'io.dart';
import 'logger.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/importer/filesystem.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import 'package:path/path.dart' as p;
import '../importer.dart';
import '../io.dart' as io;
import '../syntax.dart';
import 'result.dart';
import 'utils.dart';

/// An importer that loads files from a load path on the filesystem.
Expand Down
1 change: 0 additions & 1 deletion lib/src/importer/no_op.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// https://opensource.org/licenses/MIT.

import '../importer.dart';
import 'result.dart';

/// An importer that never imports any stylesheets.
///
Expand Down
2 changes: 0 additions & 2 deletions lib/src/importer/package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import 'package:meta/meta.dart';

import '../importer.dart';
import '../sync_package_resolver.dart';
import 'filesystem.dart';
import 'result.dart';

/// A filesystem importer to use when resolving the results of `package:` URLs.
///
Expand Down
1 change: 0 additions & 1 deletion lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import '../logger.dart';
import '../util/character.dart';
import '../utils.dart';
import '../value.dart';
import '../value/color.dart';
import 'parser.dart';

/// The base class for both the SCSS and indented syntax parsers.
Expand Down
2 changes: 0 additions & 2 deletions lib/src/stylesheet_graph.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:collection';

import 'package:collection/collection.dart';
import 'package:meta/meta.dart';
import 'package:path/path.dart' as p;
Expand Down
3 changes: 2 additions & 1 deletion test/dart_api/value/color_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ void main() {

group("new SassColor.hsl()", () {
test("allows valid values", () {
expect(SassColor.hsl(0, 0, 0, 0), equals(parseValue("hsla(0, 0%, 0%, 0)")));
expect(
SassColor.hsl(0, 0, 0, 0), equals(parseValue("hsla(0, 0%, 0%, 0)")));
expect(SassColor.hsl(4320, 100, 100, 1),
equals(parseValue("hsl(4320, 100%, 100%)")));
});
Expand Down

0 comments on commit 006e6aa

Please sign in to comment.