未验证 提交 e834ec3b 编写于 作者: S Sam Rawlins 提交者: GitHub

Remove "unnecessary" imports. (#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.
上级 2b5b0b81
......@@ -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;
......
......@@ -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.
......
......@@ -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;
......
......@@ -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;
......
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册