Skip to content

Commit

Permalink
Remove "unnecessary" imports.
Browse files Browse the repository at this point in the history
In each library where an import is removed, the library uses some elements
provided by the import, BUT there is another import which provides all of the
same elements, and at least one more which the library uses.

In this change, we remove the imports which can be simply removed in favor of
the other already present imports.

See dart-lang/sdk#44569 for more information.
  • Loading branch information
srawlins committed Jul 20, 2021
1 parent ef9ac75 commit e33ea81
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions lib/web_ui/lib/src/engine/canvaskit/font_fallbacks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import 'package:ui/ui.dart' as ui;

import '../font_change_util.dart';
import '../platform_dispatcher.dart';
import '../util.dart';
import 'canvaskit_api.dart';
import 'fonts.dart';
import 'initialization.dart';
import 'interval_tree.dart';

/// Global static font fallback data.
class FontFallbackData {
Expand Down
4 changes: 0 additions & 4 deletions lib/web_ui/lib/src/engine/canvaskit/picture.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
import 'package:ui/ui.dart' as ui;

import '../profiler.dart';
import 'canvas.dart';
import 'canvaskit_api.dart';
import 'image.dart';
import 'skia_object_cache.dart';

/// Implements [ui.Picture] on top of [SkPicture].
///
Expand Down

0 comments on commit e33ea81

Please sign in to comment.