Remove "unnecessary" imports. (flutter/engine#25736)

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 https://github.com/dart-lang/sdk/issues/44569 for more information.
This commit is contained in:
Sam Rawlins
2021-05-12 09:24:50 -07:00
committed by GitHub
parent 3592fcec48
commit ab389f1427
5 changed files with 0 additions and 7 deletions

View File

@@ -5,8 +5,6 @@
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart' as ui;
import '../browser_detection.dart';
/// Counter used for generating clip path id inside an svg <defs> tag.
int _clipIdCounter = 0;

View File

@@ -7,7 +7,6 @@ import 'dart:typed_data';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart' as ui;
import 'shader_builder.dart';
/// Converts colors and stops to typed array of bias, scale and threshold to use
/// in shaders.

View File

@@ -11,8 +11,6 @@ import 'package:meta/meta.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/ui.dart' as ui;
import 'pointer_converter.dart';
/// Set this flag to true to see all the fired events in the console.
const bool _debugLogPointerEvents = false;

View File

@@ -12,7 +12,6 @@ import 'dart:js_util' as js_util;
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/src/engine/html_image_codec.dart';
import 'package:ui/ui.dart' hide window;

View File

@@ -6,7 +6,6 @@
import 'package:test/bootstrap/browser.dart';
import 'package:test/test.dart';
import 'package:ui/src/engine.dart';
import 'package:ui/src/engine/html/shaders/shader_builder.dart';
import 'package:ui/ui.dart' hide window;
void main() {