From d1626111b6709a2ddcbf09888941cb82562231a8 Mon Sep 17 00:00:00 2001 From: tsa96 Date: Sat, 23 Nov 2024 13:45:08 +0000 Subject: [PATCH] chore: remove unused imports May have to add eslint plugin for this... --- scripts/hud/map-info.ts | 3 +-- scripts/hud/spectate.ts | 1 - scripts/hud/speedometer.ts | 1 - scripts/pages/map-selector/map-entry.ts | 4 ++-- scripts/pages/map-selector/map-selector.ts | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/hud/map-info.ts b/scripts/hud/map-info.ts index 744b0aed..61a8ca2a 100644 --- a/scripts/hud/map-info.ts +++ b/scripts/hud/map-info.ts @@ -1,7 +1,6 @@ import { PanelHandler } from 'util/module-helpers'; import { getNumZones, getTrack } from 'common/leaderboard'; -import { MapCreditType } from 'common/web'; -import { getAllCredits, getAuthorNames } from '../common/maps'; +import { getAuthorNames } from '../common/maps'; @PanelHandler() class HudMapInfoHandler { diff --git a/scripts/hud/spectate.ts b/scripts/hud/spectate.ts index ef6fd99b..8e6c40bb 100644 --- a/scripts/hud/spectate.ts +++ b/scripts/hud/spectate.ts @@ -1,5 +1,4 @@ import { PanelHandler } from 'util/module-helpers'; -import { RunEntityType } from 'common/timer'; @PanelHandler() class HudSpectateHandler { diff --git a/scripts/hud/speedometer.ts b/scripts/hud/speedometer.ts index dcecbd78..9a352b97 100644 --- a/scripts/hud/speedometer.ts +++ b/scripts/hud/speedometer.ts @@ -1,7 +1,6 @@ import { PanelHandler } from 'util/module-helpers'; import { tupleToRgbaString } from 'util/colors'; import { SpeedometerColorType, SpeedometerType } from 'common/speedometer'; -import { TimerState_OLD } from 'common/timer'; // arbitrary value to determine how much speed needs to change to be considered an increase/decrease // adjusted by speedometer update delta time diff --git a/scripts/pages/map-selector/map-entry.ts b/scripts/pages/map-selector/map-entry.ts index 62480b50..befc51d5 100644 --- a/scripts/pages/map-selector/map-entry.ts +++ b/scripts/pages/map-selector/map-entry.ts @@ -1,8 +1,8 @@ import { PanelHandler } from 'util/module-helpers'; import * as Enum from 'util/enum'; -import { MapStatuses, Gamemode, MapStatus, TrackType } from 'common/web'; +import { MapStatuses, Gamemode, MapStatus } from 'common/web'; import { GamemodeInfo } from 'common/gamemode'; -import { getTrack, getUserMapDataTrack } from 'common/leaderboard'; +import { getUserMapDataTrack } from 'common/leaderboard'; import { timetoHHMMSS } from 'util/time'; import { getTier } from 'common/maps'; diff --git a/scripts/pages/map-selector/map-selector.ts b/scripts/pages/map-selector/map-selector.ts index 63af2ad5..ccef1357 100644 --- a/scripts/pages/map-selector/map-selector.ts +++ b/scripts/pages/map-selector/map-selector.ts @@ -1,6 +1,6 @@ import { OnPanelLoad, PanelHandler } from 'util/module-helpers'; import { traverseChildren } from 'util/functions'; -import { MapStatuses, MapCreditType, MapStatus, MapImage, MMap, MapStats } from 'common/web'; +import { MapStatuses, MapCreditType, MapStatus, MMap, MapStats } from 'common/web'; import { ToastCreateArgs, ToastManager, ToastStyle } from 'util/toast-manager'; import * as Maps from 'common/maps'; import * as Leaderboards from 'common/leaderboard';