From 1f6481e527ad85da4ff13655d2734968a114eaa9 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 24 Aug 2022 11:28:09 -0700 Subject: [PATCH] chore: Removed commented-out side-effect-only imports. (#6379) --- core/block_svg.ts | 5 ----- core/bubble.ts | 6 ------ core/bubble_dragger.ts | 5 ----- core/comment.ts | 8 -------- core/connection.ts | 3 --- core/connection_db.ts | 3 --- core/extensions.ts | 3 --- core/field.ts | 5 ----- core/flyout_vertical.ts | 5 ----- core/gesture.ts | 2 -- .../i_ast_node_location_with_block.ts | 4 ---- core/interfaces/i_block_dragger.ts | 8 -------- core/interfaces/i_bounded_element.ts | 5 ----- core/interfaces/i_bubble.ts | 7 ------- core/interfaces/i_collapsible_toolbox_item.ts | 5 ----- core/interfaces/i_connection_checker.ts | 8 -------- core/interfaces/i_delete_area.ts | 5 ----- core/interfaces/i_drag_target.ts | 8 -------- core/interfaces/i_flyout.ts | 13 ------------- core/interfaces/i_keyboard_accessible.ts | 5 ----- core/interfaces/i_metrics_manager.ts | 11 ----------- core/interfaces/i_positionable.ts | 8 -------- core/interfaces/i_selectable_toolbox_item.ts | 4 ---- core/interfaces/i_toolbox.ts | 13 ------------- core/names.ts | 3 --- core/positionable_helpers.ts | 4 ---- core/renderers/common/i_path_object.ts | 10 ---------- core/renderers/common/path_object.ts | 4 ---- core/renderers/geras/highlighter.ts | 4 ---- core/renderers/geras/path_object.ts | 4 ---- core/renderers/geras/renderer.ts | 4 ---- core/renderers/zelos/path_object.ts | 4 ---- core/renderers/zelos/renderer.ts | 4 ---- core/toolbox/toolbox.ts | 3 --- core/trashcan.ts | 3 --- core/utils/toolbox.ts | 7 ------- core/workspace_comment.ts | 7 ------- core/workspace_comment_svg.ts | 4 ---- core/workspace_svg.ts | 19 ------------------- core/xml.ts | 9 --------- core/zoom_controls.ts | 3 --- 41 files changed, 245 deletions(-) diff --git a/core/block_svg.ts b/core/block_svg.ts index f80d8ebb3f3..979de6774c3 100644 --- a/core/block_svg.ts +++ b/core/block_svg.ts @@ -12,13 +12,8 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.BlockSvg'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './theme.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_selected.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './touch.js'; import {Block} from './block.js'; import * as blockAnimations from './block_animations.js'; diff --git a/core/bubble.ts b/core/bubble.ts index 014997424b7..0652c852a3a 100644 --- a/core/bubble.ts +++ b/core/bubble.ts @@ -12,12 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Bubble'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './metrics_manager.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './workspace.js'; - import type {BlockDragSurfaceSvg} from './block_drag_surface.js'; import type {BlockSvg} from './block_svg.js'; import * as browserEvents from './browser_events.js'; diff --git a/core/bubble_dragger.ts b/core/bubble_dragger.ts index 5782ff67332..268d63c9f30 100644 --- a/core/bubble_dragger.ts +++ b/core/bubble_dragger.ts @@ -12,11 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.BubbleDragger'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './bubble.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './constants.js'; - import type {BlockDragSurfaceSvg} from './block_drag_surface.js'; import {ComponentManager} from './component_manager.js'; import type {CommentMove} from './events/events_comment_move.js'; diff --git a/core/comment.ts b/core/comment.ts index b781e1d3477..07ce093d87b 100644 --- a/core/comment.ts +++ b/core/comment.ts @@ -12,18 +12,10 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Comment'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './block.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './workspace_svg.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_block_change.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_bubble_open.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './warning.js'; import type {CommentModel} from './block.js'; import type {BlockSvg} from './block_svg.js'; diff --git a/core/connection.ts b/core/connection.ts index bb398968b05..5f8ff8b7922 100644 --- a/core/connection.ts +++ b/core/connection.ts @@ -12,9 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Connection'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './constants.js'; - import type {Block} from './block.js'; import {ConnectionType} from './connection_type.js'; import type {BlockMove} from './events/events_block_move.js'; diff --git a/core/connection_db.ts b/core/connection_db.ts index 078ae961ea8..e2a2da999e5 100644 --- a/core/connection_db.ts +++ b/core/connection_db.ts @@ -14,9 +14,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.ConnectionDB'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './constants.js'; - import {ConnectionType} from './connection_type.js'; import type {IConnectionChecker} from './interfaces/i_connection_checker.js'; import type {RenderedConnection} from './rendered_connection.js'; diff --git a/core/extensions.ts b/core/extensions.ts index ee13bd420cc..ae9e3cc39ab 100644 --- a/core/extensions.ts +++ b/core/extensions.ts @@ -15,9 +15,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Extensions'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './mutator.js'; - import type {Block} from './block.js'; import type {BlockSvg} from './block_svg.js'; import {FieldDropdown} from './field_dropdown.js'; diff --git a/core/field.ts b/core/field.ts index c58c2e191ca..f8e58f1abd8 100644 --- a/core/field.ts +++ b/core/field.ts @@ -14,13 +14,8 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Field'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './shortcut_registry.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_block_change.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './gesture.js'; import type {Block} from './block.js'; import type {BlockSvg} from './block_svg.js'; diff --git a/core/flyout_vertical.ts b/core/flyout_vertical.ts index c5bf5d33d96..860379b7709 100644 --- a/core/flyout_vertical.ts +++ b/core/flyout_vertical.ts @@ -12,11 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.VerticalFlyout'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './block.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './constants.js'; - import * as browserEvents from './browser_events.js'; import * as dropDownDiv from './dropdowndiv.js'; import {Flyout, FlyoutItem} from './flyout_base.js'; diff --git a/core/gesture.ts b/core/gesture.ts index 20262b9d661..ab877eed827 100644 --- a/core/gesture.ts +++ b/core/gesture.ts @@ -13,8 +13,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Gesture'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './block_dragger.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_click.js'; diff --git a/core/interfaces/i_ast_node_location_with_block.ts b/core/interfaces/i_ast_node_location_with_block.ts index 14a2e5e713b..72ef94b7888 100644 --- a/core/interfaces/i_ast_node_location_with_block.ts +++ b/core/interfaces/i_ast_node_location_with_block.ts @@ -13,10 +13,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.IASTNodeLocationWithBlock'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../block.js'; - import type {IASTNodeLocation} from './i_ast_node_location.js'; import type {Block} from '../block.js'; diff --git a/core/interfaces/i_block_dragger.ts b/core/interfaces/i_block_dragger.ts index e70cf7f2a10..8fa4b9ddadd 100644 --- a/core/interfaces/i_block_dragger.ts +++ b/core/interfaces/i_block_dragger.ts @@ -14,14 +14,6 @@ import type {Coordinate} from '../utils/coordinate.js'; import type {BlockSvg} from '../block_svg.js'; goog.declareModuleId('Blockly.IBlockDragger'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../block_svg.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/coordinate.js'; - - /** * A block dragger interface. * diff --git a/core/interfaces/i_bounded_element.ts b/core/interfaces/i_bounded_element.ts index 00e769ca696..8aae8628539 100644 --- a/core/interfaces/i_bounded_element.ts +++ b/core/interfaces/i_bounded_element.ts @@ -13,11 +13,6 @@ import * as goog from '../../closure/goog/goog.js'; import type {Rect} from '../utils/rect.js'; goog.declareModuleId('Blockly.IBoundedElement'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/rect.js'; - - /** * A bounded element interface. * diff --git a/core/interfaces/i_bubble.ts b/core/interfaces/i_bubble.ts index 2c861c325c9..f424af33446 100644 --- a/core/interfaces/i_bubble.ts +++ b/core/interfaces/i_bubble.ts @@ -14,13 +14,6 @@ import type {Coordinate} from '../utils/coordinate.js'; import type {BlockDragSurfaceSvg} from '../block_drag_surface.js'; goog.declareModuleId('Blockly.IBubble'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../block_drag_surface.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/coordinate.js'; - import type {IContextMenu} from './i_contextmenu.js'; import type {IDraggable} from './i_draggable.js'; diff --git a/core/interfaces/i_collapsible_toolbox_item.ts b/core/interfaces/i_collapsible_toolbox_item.ts index ea1723f53c0..a7d8e9153f0 100644 --- a/core/interfaces/i_collapsible_toolbox_item.ts +++ b/core/interfaces/i_collapsible_toolbox_item.ts @@ -12,11 +12,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.ICollapsibleToolboxItem'); -/* eslint-disable-next-line no-unused-vars */ -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './i_toolbox_item.js'; - import type {ISelectableToolboxItem} from './i_selectable_toolbox_item.js'; import type {IToolboxItem} from './i_toolbox_item.js'; diff --git a/core/interfaces/i_connection_checker.ts b/core/interfaces/i_connection_checker.ts index edde750a6ba..deb3c59fad4 100644 --- a/core/interfaces/i_connection_checker.ts +++ b/core/interfaces/i_connection_checker.ts @@ -15,14 +15,6 @@ import type {Connection} from '../connection.js'; import type {RenderedConnection} from '../rendered_connection.js'; goog.declareModuleId('Blockly.IConnectionChecker'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../connection.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../rendered_connection.js'; - - /** * Class for connection type checking logic. * diff --git a/core/interfaces/i_delete_area.ts b/core/interfaces/i_delete_area.ts index b96d8afea84..1d9752b05c8 100644 --- a/core/interfaces/i_delete_area.ts +++ b/core/interfaces/i_delete_area.ts @@ -13,11 +13,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.IDeleteArea'); -/* eslint-disable-next-line no-unused-vars */ -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './i_draggable.js'; - import type {IDragTarget} from './i_drag_target.js'; import type {IDraggable} from './i_draggable.js'; diff --git a/core/interfaces/i_drag_target.ts b/core/interfaces/i_drag_target.ts index e7014f45ae3..f1e1b3c977d 100644 --- a/core/interfaces/i_drag_target.ts +++ b/core/interfaces/i_drag_target.ts @@ -17,14 +17,6 @@ import {IDraggable} from './i_draggable.js'; goog.declareModuleId('Blockly.IDragTarget'); -/* eslint-disable-next-line no-unused-vars */ -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './i_draggable.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/rect.js'; - import type {IComponent} from './i_component.js'; diff --git a/core/interfaces/i_flyout.ts b/core/interfaces/i_flyout.ts index ac2d9ca0fbc..825660686f4 100644 --- a/core/interfaces/i_flyout.ts +++ b/core/interfaces/i_flyout.ts @@ -12,19 +12,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.IFlyout'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/toolbox.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../block_svg.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/coordinate.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/svg.js'; - import type {WorkspaceSvg} from '../workspace_svg.js'; import type {BlockSvg} from '../block_svg.js'; import type {Coordinate} from '../utils/coordinate.js'; diff --git a/core/interfaces/i_keyboard_accessible.ts b/core/interfaces/i_keyboard_accessible.ts index a91793a9adc..d60fb02244f 100644 --- a/core/interfaces/i_keyboard_accessible.ts +++ b/core/interfaces/i_keyboard_accessible.ts @@ -13,11 +13,6 @@ import * as goog from '../../closure/goog/goog.js'; import {KeyboardShortcut} from '../shortcut_registry.js'; goog.declareModuleId('Blockly.IKeyboardAccessible'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../shortcut_registry.js'; - - /** * An interface for an object that handles keyboard shortcuts. * diff --git a/core/interfaces/i_metrics_manager.ts b/core/interfaces/i_metrics_manager.ts index e39e7e5d728..3988c4a854c 100644 --- a/core/interfaces/i_metrics_manager.ts +++ b/core/interfaces/i_metrics_manager.ts @@ -15,17 +15,6 @@ import type {Size} from '../utils/size.js'; import type {Metrics} from '../utils/metrics.js'; goog.declareModuleId('Blockly.IMetricsManager'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../metrics_manager.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/metrics.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/size.js'; - - /** * Interface for a metrics manager. * diff --git a/core/interfaces/i_positionable.ts b/core/interfaces/i_positionable.ts index dedac776341..7edf0c694b9 100644 --- a/core/interfaces/i_positionable.ts +++ b/core/interfaces/i_positionable.ts @@ -14,14 +14,6 @@ import type {Rect} from '../utils/rect.js'; import type {UiMetrics} from '../metrics_manager.js'; goog.declareModuleId('Blockly.IPositionable'); -/* eslint-disable-next-line no-unused-vars */ -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../metrics_manager.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/rect.js'; - import type {IComponent} from './i_component.js'; diff --git a/core/interfaces/i_selectable_toolbox_item.ts b/core/interfaces/i_selectable_toolbox_item.ts index 93cea2c6d7a..e7fe06f8645 100644 --- a/core/interfaces/i_selectable_toolbox_item.ts +++ b/core/interfaces/i_selectable_toolbox_item.ts @@ -13,10 +13,6 @@ import * as goog from '../../closure/goog/goog.js'; import type {FlyoutItemInfoArray} from '../utils/toolbox'; goog.declareModuleId('Blockly.ISelectableToolboxItem'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/toolbox.js'; - import type {IToolboxItem} from './i_toolbox_item.js'; diff --git a/core/interfaces/i_toolbox.ts b/core/interfaces/i_toolbox.ts index 7d4a3bc854a..fdc021f5ad2 100644 --- a/core/interfaces/i_toolbox.ts +++ b/core/interfaces/i_toolbox.ts @@ -12,19 +12,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.IToolbox'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../utils/toolbox.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './i_flyout.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './i_toolbox_item.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../workspace_svg.js'; - import type {IRegistrable} from './i_registrable.js'; import type {IToolboxItem} from './i_toolbox_item.js'; import type {ToolboxInfo} from '../utils/toolbox.js'; diff --git a/core/names.ts b/core/names.ts index 10892f990c3..0a656fbcfc3 100644 --- a/core/names.ts +++ b/core/names.ts @@ -12,9 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Names'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './procedures.js'; - import {Msg} from './msg.js'; // import * as Procedures from './procedures.js'; import type {VariableMap} from './variable_map.js'; diff --git a/core/positionable_helpers.ts b/core/positionable_helpers.ts index 93780637953..035ba91cd0f 100644 --- a/core/positionable_helpers.ts +++ b/core/positionable_helpers.ts @@ -12,10 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.uiPosition'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './metrics_manager.js'; - import type {UiMetrics} from './metrics_manager.js'; import {Scrollbar} from './scrollbar.js'; import {Rect} from './utils/rect.js'; diff --git a/core/renderers/common/i_path_object.ts b/core/renderers/common/i_path_object.ts index a668c6a2a79..4159775a172 100644 --- a/core/renderers/common/i_path_object.ts +++ b/core/renderers/common/i_path_object.ts @@ -13,16 +13,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.blockRendering.IPathObject'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../block_svg.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../connection.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../theme.js'; - import type {BlockStyle} from '../../theme.js'; import type {ConstantProvider} from './constants.js'; diff --git a/core/renderers/common/path_object.ts b/core/renderers/common/path_object.ts index 43cc7125fd8..e88a314ddf8 100644 --- a/core/renderers/common/path_object.ts +++ b/core/renderers/common/path_object.ts @@ -12,10 +12,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.blockRendering.PathObject'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../theme.js'; - import type {BlockSvg} from '../../block_svg.js'; import type {Connection} from '../../connection.js'; import type {BlockStyle} from '../../theme.js'; diff --git a/core/renderers/geras/highlighter.ts b/core/renderers/geras/highlighter.ts index 6dbc1e73d3a..4d36cbcffd2 100644 --- a/core/renderers/geras/highlighter.ts +++ b/core/renderers/geras/highlighter.ts @@ -13,10 +13,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.geras.Highlighter'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './renderer.js'; - import * as svgPaths from '../../utils/svg_paths.js'; import type {ConstantProvider} from '../common/constants.js'; import type {BottomRow} from '../measurables/bottom_row.js'; diff --git a/core/renderers/geras/path_object.ts b/core/renderers/geras/path_object.ts index f331ff6d72f..2ff30f7847a 100644 --- a/core/renderers/geras/path_object.ts +++ b/core/renderers/geras/path_object.ts @@ -12,10 +12,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.geras.PathObject'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../theme.js'; - import type {BlockSvg} from '../../block_svg.js'; import type {BlockStyle} from '../../theme.js'; import * as colour from '../../utils/colour.js'; diff --git a/core/renderers/geras/renderer.ts b/core/renderers/geras/renderer.ts index d0aca993c5b..604282a815b 100644 --- a/core/renderers/geras/renderer.ts +++ b/core/renderers/geras/renderer.ts @@ -12,10 +12,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.geras.Renderer'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../common/constants.js'; - import type {BlockSvg} from '../../block_svg.js'; import type {BlockStyle, Theme} from '../../theme.js'; import * as blockRendering from '../common/block_rendering.js'; diff --git a/core/renderers/zelos/path_object.ts b/core/renderers/zelos/path_object.ts index d021865ba0b..dcc4c0d3e2e 100644 --- a/core/renderers/zelos/path_object.ts +++ b/core/renderers/zelos/path_object.ts @@ -12,10 +12,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.zelos.PathObject'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../theme.js'; - import type {BlockSvg} from '../../block_svg.js'; import type {Connection} from '../../connection.js'; import type {BlockStyle} from '../../theme.js'; diff --git a/core/renderers/zelos/renderer.ts b/core/renderers/zelos/renderer.ts index 19610426cfb..6fa749104fa 100644 --- a/core/renderers/zelos/renderer.ts +++ b/core/renderers/zelos/renderer.ts @@ -12,10 +12,6 @@ import * as goog from '../../../closure/goog/goog.js'; goog.declareModuleId('Blockly.zelos.Renderer'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../../theme.js'; - import type {BlockSvg} from '../../block_svg.js'; import type {Connection} from '../../connection.js'; import {ConnectionType} from '../../connection_type.js'; diff --git a/core/toolbox/toolbox.ts b/core/toolbox/toolbox.ts index afb7de0a071..8368e909441 100644 --- a/core/toolbox/toolbox.ts +++ b/core/toolbox/toolbox.ts @@ -12,9 +12,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.Toolbox'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../shortcut_registry.js'; // Unused import preserved for side-effects. Remove if unneeded. import '../events/events_toolbox_item_select.js'; diff --git a/core/trashcan.ts b/core/trashcan.ts index 25b7724a47d..8078432a49f 100644 --- a/core/trashcan.ts +++ b/core/trashcan.ts @@ -12,9 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Trashcan'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './metrics_manager.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_trashcan_open.js'; diff --git a/core/utils/toolbox.ts b/core/utils/toolbox.ts index 3eefb7364b8..622b0ad1a23 100644 --- a/core/utils/toolbox.ts +++ b/core/utils/toolbox.ts @@ -12,13 +12,6 @@ import * as goog from '../../closure/goog/goog.js'; goog.declareModuleId('Blockly.utils.toolbox'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../toolbox/category.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import '../toolbox/separator.js'; - import type {ConnectionState} from '../serialization/blocks.js'; import type {CssConfig as CategoryCssConfig} from '../toolbox/category.js'; import type {CssConfig as SeparatorCssConfig} from '../toolbox/separator.js'; diff --git a/core/workspace_comment.ts b/core/workspace_comment.ts index 410f36945f5..449116f3d4d 100644 --- a/core/workspace_comment.ts +++ b/core/workspace_comment.ts @@ -12,13 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.WorkspaceComment'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './events/events_comment_change.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './events/events_comment_create.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './events/events_comment_delete.js'; - import type {CommentMove} from './events/events_comment_move.js'; import * as eventUtils from './events/utils.js'; import {Coordinate} from './utils/coordinate.js'; diff --git a/core/workspace_comment_svg.ts b/core/workspace_comment_svg.ts index bfd2986942a..6efcc114312 100644 --- a/core/workspace_comment_svg.ts +++ b/core/workspace_comment_svg.ts @@ -12,10 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.WorkspaceCommentSvg'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './events/events_comment_create.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './events/events_comment_delete.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_selected.js'; diff --git a/core/workspace_svg.ts b/core/workspace_svg.ts index 663afe520a3..00310779e4b 100644 --- a/core/workspace_svg.ts +++ b/core/workspace_svg.ts @@ -12,31 +12,12 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.WorkspaceSvg'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './procedures.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './variables.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './variables_dynamic.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './rendered_connection.js'; -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './zoom_controls.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_block_create.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_theme_change.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_viewport.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './metrics_manager.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './msg.js'; import type {Block} from './block.js'; import type {BlockDragSurfaceSvg} from './block_drag_surface.js'; diff --git a/core/xml.ts b/core/xml.ts index 8e3a9c18d6d..ff81aac5551 100644 --- a/core/xml.ts +++ b/core/xml.ts @@ -12,15 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.Xml'); -// Unused import preserved for side-effects. Remove if unneeded. -// import './comment.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './variables.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './workspace_comment.js'; -// Unused import preserved for side-effects. Remove if unneeded. -// import './workspace_comment_svg.js'; - import type {Block} from './block.js'; import type {BlockSvg} from './block_svg.js'; import type {Connection} from './connection.js'; diff --git a/core/zoom_controls.ts b/core/zoom_controls.ts index 7a8df657af6..5098487e275 100644 --- a/core/zoom_controls.ts +++ b/core/zoom_controls.ts @@ -12,9 +12,6 @@ import * as goog from '../closure/goog/goog.js'; goog.declareModuleId('Blockly.ZoomControls'); -/* eslint-disable-next-line no-unused-vars */ -// Unused import preserved for side-effects. Remove if unneeded. -// import './metrics_manager.js'; // Unused import preserved for side-effects. Remove if unneeded. import './events/events_click.js';