Skip to content

Commit

Permalink
Remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlademann-wf committed Jul 23, 2024
1 parent 4f14636 commit 9d070f1
Show file tree
Hide file tree
Showing 22 changed files with 6 additions and 30 deletions.
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ analyzer:
- tools/analyzer_plugin/**
- ddc_precompiled/**
errors:
duplicate_import: warning
must_call_super: error
unused_import: warning
unnecessary_import: warning
unnecessary_null_comparison: warning

# Workaround for https://github.com/dart-lang/sdk/issues/51087
# TODO remove once we're no longer running CI on Dart 2.18
part_of_different_library: ignore
Expand Down
1 change: 0 additions & 1 deletion example/suspense/lazy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import 'dart:js';
import 'dart:js_util';

import 'package:js/js.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/builder/parsing/ast_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/ast/syntactic_entity.dart';
import 'package:analyzer/dart/ast/token.dart';
import 'package:analyzer/dart/ast/visitor.dart';
import 'package:collection/collection.dart' show IterableExtension;
import 'package:over_react/src/builder/codegen/names.dart';
import 'package:source_span/source_span.dart';
import 'package:transformer_utils/transformer_utils.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/builder/parsing/member_association.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import 'ast_util.dart';
import 'members.dart';
import 'package:collection/collection.dart' show IterableExtension;
import 'util.dart';

/// Removes the generated prefix from anywhere inside of [name].
Expand Down
7 changes: 0 additions & 7 deletions lib/src/builder/parsing/members.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import 'package:analyzer/dart/ast/ast.dart';
import 'package:analyzer/dart/ast/token.dart';
import 'package:build/build.dart' show log;
import 'package:collection/collection.dart' show IterableExtension;
import 'package:meta/meta.dart';
import 'package:over_react/src/builder/codegen/names.dart';
import 'package:over_react/src/component_declaration/annotations.dart' as annotations;
Expand All @@ -24,12 +23,6 @@ import 'package:over_react/src/util/string_util.dart';

import '../parsing.dart';
import '../util.dart';
import 'ast_util.dart';
import 'declarations.dart';
import 'members_from_ast.dart';
import 'meta.dart';
import 'error_collection.dart';
import 'version.dart';

part 'members/component.dart';
part 'members/factory.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/builder/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import 'dart:mirrors';

import 'package:analyzer/dart/ast/ast.dart';
import 'package:build/build.dart' show AssetId;
import 'package:collection/collection.dart' show IterableExtension;
import 'package:over_react/src/builder/parsing.dart';
import 'package:path/path.dart' as p;
import 'package:source_span/source_span.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/component/_deprecated/abstract_transition.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import 'package:meta/meta.dart';
import 'package:over_react/over_react.dart';
import 'package:over_react/component_base.dart' as component_base;

import '../abstract_transition.dart' show TransitionPhase;
export '../abstract_transition.dart' show TransitionPhase;

part 'abstract_transition.over_react.g.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/component/prop_typedefs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ library over_react.prop_typedefs;

import 'package:over_react/over_react.dart';
import 'package:over_react/src/component_declaration/component_base.dart' as component_base;
import 'package:react/react_client.dart';

/// A custom rendering prop typedef that allows a custom rendering function to be provided
/// with the current [props] and [state] of the [component].
Expand Down
1 change: 0 additions & 1 deletion lib/src/over_react_redux/over_react_flux.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import 'dart:html';
import 'package:meta/meta.dart';
import 'package:over_react/over_react.dart';
import 'package:over_react/over_react_redux.dart';
import 'package:over_react/src/util/equality.dart';
import 'package:redux/redux.dart' as redux;
import 'package:w_flux/w_flux.dart' as flux;

Expand Down
1 change: 0 additions & 1 deletion lib/src/util/promise_interop.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@JS()
library over_react.promise_interop;
import 'dart:js';

import 'package:js/js.dart';

Expand Down
1 change: 0 additions & 1 deletion lib/src/util/react_wrappers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import 'package:over_react/over_react.dart';
import 'package:over_react/src/component_declaration/component_type_checking.dart';
import 'package:react/react.dart' as react;
import 'package:react/react_client.dart';
import 'package:react/react_client/js_backed_map.dart';
import 'package:react/react_client/js_interop_helpers.dart' show jsifyAndAllowInterop;
import 'package:react/react_client/react_interop.dart' hide createRef;
import 'package:react/react_dom.dart' as react_dom;
Expand Down
1 change: 0 additions & 1 deletion lib/src/util/rem_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import 'package:meta/meta.dart';
import 'package:over_react/over_react.dart';
import 'package:over_react/components.dart' as v2;
import 'package:over_react/src/component_declaration/component_base.dart' as component_base;
import 'package:over_react/src/util/css_value_util.dart';
import 'package:over_react/react_dom.dart' as react_dom;
import 'package:platform_detect/platform_detect.dart';

Expand Down
1 change: 0 additions & 1 deletion test/over_react/component/element_type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ library element_type_test;

import 'package:test/test.dart';
import 'package:over_react/over_react.dart';
import 'package:over_react/src/component/dom_components.dart';

part 'element_type_test.over_react.g.dart'; // ignore: uri_has_not_been_generated

Expand Down
1 change: 0 additions & 1 deletion test/over_react/component/memo_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

library memo_test;

import 'package:over_react/src/util/memo.dart';
import 'package:over_react_test/over_react_test.dart';
import 'package:test/test.dart';
import 'package:over_react/over_react.dart';
Expand Down
1 change: 0 additions & 1 deletion test/over_react/component/ref_util_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import 'dart:js_util';
import 'package:meta/meta.dart';
import 'package:test/test.dart';
import 'package:over_react/over_react.dart';
import 'package:over_react/src/component/dom_components.dart';

import '../../test_util/test_util.dart';
import '../component/fixtures/basic_child_component.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import 'dart:html';
import 'package:js/js_util.dart';
import 'package:over_react/over_react.dart' show Dom, DummyComponent, DummyComponent2, JsBackedMap, UiComponent2, UiStatefulComponent2, ValidationUtil, domProps, registerComponent2;
import 'package:over_react/over_react.dart' as over_react;
import 'package:over_react_test/over_react_test.dart';
import 'package:over_react/src/component_declaration/component_base.dart';
import 'package:over_react/src/component_declaration/component_type_checking.dart';
import 'package:pedantic/pedantic.dart';
Expand Down
1 change: 0 additions & 1 deletion test/over_react/util/prop_key_util_test_dart2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import 'package:test/test.dart';
import 'package:over_react/over_react.dart';
import 'package:over_react/src/util/prop_key_util.dart';

part 'prop_key_util_test_dart2.over_react.g.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import 'dart:html';

import 'package:react/react.dart' as react;
import 'package:over_react/over_react.dart';
import 'package:over_react/src/util/safe_render_manager/safe_render_manager.dart';
import 'package:over_react_test/over_react_test.dart';
import 'package:test/test.dart';
import 'package:w_common/disposable.dart';
Expand Down
3 changes: 0 additions & 3 deletions test/vm_tests/builder/declaration_parsing_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ library declaration_parsing_test;
import 'package:analyzer/dart/analysis/utilities.dart';
import 'package:analyzer/dart/ast/ast.dart';
import 'package:build_test/build_test.dart' show recordLogs;
import 'package:collection/collection.dart' show IterableExtension;
import 'package:logging/logging.dart';
import 'package:meta/meta.dart';
import 'package:mocktail/mocktail.dart';
import 'package:over_react/src/builder/parsing.dart';
import 'package:over_react/src/builder/parsing/member_association.dart';
import 'package:over_react/src/builder/parsing/error_collection.dart';
import 'package:over_react/src/component_declaration/annotations.dart' as annotations;
import 'package:source_span/source_span.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 0 additions & 2 deletions test/vm_tests/builder/parsing/member_association_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

@TestOn('vm')
import 'package:over_react/src/builder/parsing/member_association.dart';
import 'package:over_react/src/builder/parsing.dart';
import 'package:test/test.dart';

Expand Down
1 change: 0 additions & 1 deletion web/component2/src/demos/custom_error_boundary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

// ignore_for_file: deprecated_member_use_from_same_package
import 'package:over_react/over_react.dart';
import 'package:react/react_client/react_interop.dart';

part 'custom_error_boundary.over_react.g.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import 'package:over_react/over_react.dart';
import 'package:over_react/over_react_flux.dart';
import 'package:over_react/over_react_redux.dart';
import 'package:over_react/src/util/hoc.dart';

import '../store.dart';
import '../../../components/little_block.dart';
Expand Down

0 comments on commit 9d070f1

Please sign in to comment.