From d70b998cf83f2019050be8638895d1bac0ad54bb Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 21 Sep 2021 18:19:05 -0700 Subject: [PATCH] Eliminate unnecessary canvaskit imports (flutter/engine#28787) Fixes the following lints: ``` Analyzing web_ui... info - lib/src/engine/canvaskit/surface_factory.dart:8:8 - The import of '../util.dart' is unnecessary as all of the used elements are also provided by the import of '../../engine.dart'. Try removing the import directive. - unnecessary_import info - lib/src/engine/canvaskit/surface_factory.dart:9:8 - The import of 'embedded_views.dart' is unnecessary as all of the used elements are also provided by the import of '../../engine.dart'. Try removing the import directive. - unnecessary_import info - lib/src/engine/canvaskit/surface_factory.dart:10:8 - The import of 'surface.dart' is unnecessary as all of the used elements are also provided by the import of '../../engine.dart'. Try removing the import directive. - unnecessary_import ``` --- .../lib/web_ui/lib/src/engine/canvaskit/surface_factory.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine/canvaskit/surface_factory.dart b/engine/src/flutter/lib/web_ui/lib/src/engine/canvaskit/surface_factory.dart index c7f7e73b33..31339f2042 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine/canvaskit/surface_factory.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine/canvaskit/surface_factory.dart @@ -5,9 +5,6 @@ import 'package:meta/meta.dart'; import '../../engine.dart'; -import '../util.dart'; -import 'embedded_views.dart'; -import 'surface.dart'; /// Caches surfaces used to overlay platform views. class SurfaceFactory {