Skip to content

Commit

Permalink
chore: Removed commented-out side-effect-only imports. (#6379)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored Aug 24, 2022
1 parent 57a5d0d commit 1f6481e
Show file tree
Hide file tree
Showing 41 changed files with 0 additions and 245 deletions.
5 changes: 0 additions & 5 deletions core/block_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 0 additions & 6 deletions core/bubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 0 additions & 5 deletions core/bubble_dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
8 changes: 0 additions & 8 deletions core/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 0 additions & 3 deletions core/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 0 additions & 3 deletions core/connection_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 0 additions & 3 deletions core/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 0 additions & 5 deletions core/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 0 additions & 5 deletions core/flyout_vertical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions core/gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
4 changes: 0 additions & 4 deletions core/interfaces/i_ast_node_location_with_block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
8 changes: 0 additions & 8 deletions core/interfaces/i_block_dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
5 changes: 0 additions & 5 deletions core/interfaces/i_bounded_element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
7 changes: 0 additions & 7 deletions core/interfaces/i_bubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
5 changes: 0 additions & 5 deletions core/interfaces/i_collapsible_toolbox_item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
8 changes: 0 additions & 8 deletions core/interfaces/i_connection_checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
5 changes: 0 additions & 5 deletions core/interfaces/i_delete_area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
8 changes: 0 additions & 8 deletions core/interfaces/i_drag_target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';


Expand Down
13 changes: 0 additions & 13 deletions core/interfaces/i_flyout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 0 additions & 5 deletions core/interfaces/i_keyboard_accessible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
11 changes: 0 additions & 11 deletions core/interfaces/i_metrics_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 0 additions & 8 deletions core/interfaces/i_positionable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';


Expand Down
4 changes: 0 additions & 4 deletions core/interfaces/i_selectable_toolbox_item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';


Expand Down
13 changes: 0 additions & 13 deletions core/interfaces/i_toolbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 0 additions & 3 deletions core/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions core/positionable_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
10 changes: 0 additions & 10 deletions core/renderers/common/i_path_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions core/renderers/common/path_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions core/renderers/geras/highlighter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 0 additions & 4 deletions core/renderers/geras/path_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading

0 comments on commit 1f6481e

Please sign in to comment.