From d19a7276dde3b04f07b5bef8415c50da0c8273db Mon Sep 17 00:00:00 2001 From: felixlinker Date: Fri, 5 Oct 2018 00:06:57 +0100 Subject: [PATCH] Optimized imports --- src/app/components/Boost.jsx | 7 ------- src/app/components/Cargo.jsx | 1 - src/app/components/EngagementRange.jsx | 1 - src/app/components/EngineProfile.jsx | 5 ----- src/app/components/FSDProfile.jsx | 5 ----- src/app/components/Fuel.jsx | 1 - src/app/components/HardpointSlotSection.jsx | 1 - src/app/components/InternalSlotSection.jsx | 1 - src/app/components/JumpRange.jsx | 4 ---- src/app/components/ModificationsMenu.jsx | 2 +- src/app/components/Offence.jsx | 1 - src/app/components/OutfittingSubpages.jsx | 2 -- src/app/components/ShipPicker.jsx | 1 - src/app/components/Slot.jsx | 1 - src/app/components/UtilitySlotSection.jsx | 1 - src/app/components/WeaponDamageChart.jsx | 5 ----- src/app/utils/SlotFunctions.js | 3 --- 17 files changed, 1 insertion(+), 41 deletions(-) diff --git a/src/app/components/Boost.jsx b/src/app/components/Boost.jsx index 6245a4fc..26a4ec0d 100644 --- a/src/app/components/Boost.jsx +++ b/src/app/components/Boost.jsx @@ -1,13 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; -import { nameComparator } from '../utils/SlotFunctions'; -import { Pip } from './SvgIcons'; -import LineChart from '../components/LineChart'; -import Slider from '../components/Slider'; -import * as ModuleUtils from '../shipyard/ModuleUtils'; -import Module from '../shipyard/Module'; /** * Boost displays a boost button that toggles bosot diff --git a/src/app/components/Cargo.jsx b/src/app/components/Cargo.jsx index 3492cea1..d0f6dc10 100644 --- a/src/app/components/Cargo.jsx +++ b/src/app/components/Cargo.jsx @@ -1,7 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; import Slider from '../components/Slider'; /** diff --git a/src/app/components/EngagementRange.jsx b/src/app/components/EngagementRange.jsx index 87168b20..d7823ee9 100644 --- a/src/app/components/EngagementRange.jsx +++ b/src/app/components/EngagementRange.jsx @@ -1,7 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; import Slider from '../components/Slider'; /** diff --git a/src/app/components/EngineProfile.jsx b/src/app/components/EngineProfile.jsx index 5b13aa99..ddaf4cfd 100644 --- a/src/app/components/EngineProfile.jsx +++ b/src/app/components/EngineProfile.jsx @@ -1,12 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; -import { nameComparator } from '../utils/SlotFunctions'; import LineChart from '../components/LineChart'; -import Slider from '../components/Slider'; -import * as ModuleUtils from '../shipyard/ModuleUtils'; -import Module from '../shipyard/Module'; import * as Calc from '../shipyard/Calculations'; /** diff --git a/src/app/components/FSDProfile.jsx b/src/app/components/FSDProfile.jsx index ae041a43..2ec4098a 100644 --- a/src/app/components/FSDProfile.jsx +++ b/src/app/components/FSDProfile.jsx @@ -1,12 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; -import { nameComparator } from '../utils/SlotFunctions'; import LineChart from '../components/LineChart'; -import Slider from '../components/Slider'; -import * as ModuleUtils from '../shipyard/ModuleUtils'; -import Module from '../shipyard/Module'; import * as Calc from '../shipyard/Calculations'; /** diff --git a/src/app/components/Fuel.jsx b/src/app/components/Fuel.jsx index 5e090578..13d0966f 100644 --- a/src/app/components/Fuel.jsx +++ b/src/app/components/Fuel.jsx @@ -1,7 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; import Slider from '../components/Slider'; /** diff --git a/src/app/components/HardpointSlotSection.jsx b/src/app/components/HardpointSlotSection.jsx index a603ecc5..bc3b0c99 100644 --- a/src/app/components/HardpointSlotSection.jsx +++ b/src/app/components/HardpointSlotSection.jsx @@ -1,7 +1,6 @@ import React from 'react'; import SlotSection from './SlotSection'; import HardpointSlot from './HardpointSlot'; -import cn from 'classnames'; import { MountFixed, MountGimballed, MountTurret } from '../components/SvgIcons'; import { stopCtxPropagation } from '../utils/UtilityFunctions'; diff --git a/src/app/components/InternalSlotSection.jsx b/src/app/components/InternalSlotSection.jsx index f7995c34..2bdc7a4a 100644 --- a/src/app/components/InternalSlotSection.jsx +++ b/src/app/components/InternalSlotSection.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import cn from 'classnames'; import SlotSection from './SlotSection'; import InternalSlot from './InternalSlot'; import * as ModuleUtils from '../shipyard/ModuleUtils'; diff --git a/src/app/components/JumpRange.jsx b/src/app/components/JumpRange.jsx index ceba5bc2..ff533319 100644 --- a/src/app/components/JumpRange.jsx +++ b/src/app/components/JumpRange.jsx @@ -1,12 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; -import { nameComparator } from '../utils/SlotFunctions'; import LineChart from '../components/LineChart'; import Slider from '../components/Slider'; -import * as ModuleUtils from '../shipyard/ModuleUtils'; -import Module from '../shipyard/Module'; import * as Calc from '../shipyard/Calculations'; /** diff --git a/src/app/components/ModificationsMenu.jsx b/src/app/components/ModificationsMenu.jsx index 803226a9..2207466c 100644 --- a/src/app/components/ModificationsMenu.jsx +++ b/src/app/components/ModificationsMenu.jsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import * as _ from 'lodash'; import TranslatedComponent from './TranslatedComponent'; -import { isEmpty, stopCtxPropagation } from '../utils/UtilityFunctions'; +import { stopCtxPropagation } from '../utils/UtilityFunctions'; import cn from 'classnames'; import { Modifications } from 'coriolis-data/dist'; import Modification from './Modification'; diff --git a/src/app/components/Offence.jsx b/src/app/components/Offence.jsx index 524c40a7..a21ba490 100644 --- a/src/app/components/Offence.jsx +++ b/src/app/components/Offence.jsx @@ -5,7 +5,6 @@ import * as Calc from '../shipyard/Calculations'; import PieChart from './PieChart'; import { nameComparator } from '../utils/SlotFunctions'; import { MountFixed, MountGimballed, MountTurret } from './SvgIcons'; -import VerticalBarChart from './VerticalBarChart'; /** * Generates an internationalization friendly weapon comparator that will diff --git a/src/app/components/OutfittingSubpages.jsx b/src/app/components/OutfittingSubpages.jsx index 5eb68e21..b7d5ff5f 100644 --- a/src/app/components/OutfittingSubpages.jsx +++ b/src/app/components/OutfittingSubpages.jsx @@ -1,8 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; -import { Ships } from 'coriolis-data/dist'; -import Ship from '../shipyard/Ship'; import Persist from '../stores/Persist'; import TranslatedComponent from './TranslatedComponent'; import PowerManagement from './PowerManagement'; diff --git a/src/app/components/ShipPicker.jsx b/src/app/components/ShipPicker.jsx index f1494f3c..432b2130 100644 --- a/src/app/components/ShipPicker.jsx +++ b/src/app/components/ShipPicker.jsx @@ -1,7 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import Ship from '../shipyard/Ship'; import { Ships } from 'coriolis-data/dist'; import { Rocket } from './SvgIcons'; import Persist from '../stores/Persist'; diff --git a/src/app/components/Slot.jsx b/src/app/components/Slot.jsx index 63f7e8a4..8bd080ec 100644 --- a/src/app/components/Slot.jsx +++ b/src/app/components/Slot.jsx @@ -6,7 +6,6 @@ import AvailableModulesMenu from './AvailableModulesMenu'; import ModificationsMenu from './ModificationsMenu'; import { diffDetails } from '../utils/SlotFunctions'; import { wrapCtxMenu } from '../utils/UtilityFunctions'; -import { stopCtxPropagation } from '../utils/UtilityFunctions'; /** * Abstract Slot diff --git a/src/app/components/UtilitySlotSection.jsx b/src/app/components/UtilitySlotSection.jsx index 9857bc38..eeffee31 100644 --- a/src/app/components/UtilitySlotSection.jsx +++ b/src/app/components/UtilitySlotSection.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import cn from 'classnames'; import SlotSection from './SlotSection'; import HardpointSlot from './HardpointSlot'; import { stopCtxPropagation } from '../utils/UtilityFunctions'; diff --git a/src/app/components/WeaponDamageChart.jsx b/src/app/components/WeaponDamageChart.jsx index 610e1755..cf4ab888 100644 --- a/src/app/components/WeaponDamageChart.jsx +++ b/src/app/components/WeaponDamageChart.jsx @@ -1,13 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; import TranslatedComponent from './TranslatedComponent'; -import { Ships } from 'coriolis-data/dist'; -import { nameComparator } from '../utils/SlotFunctions'; -import { CollapseSection, ExpandSection, MountFixed, MountGimballed, MountTurret } from './SvgIcons'; import LineChart from '../components/LineChart'; -import Slider from '../components/Slider'; import * as Calc from '../shipyard/Calculations'; -import Module from '../shipyard/Module'; const DAMAGE_DEALT_COLORS = ['#FFFFFF', '#FF0000', '#00FF00', '#7777FF', '#FFFF00', '#FF00FF', '#00FFFF', '#777777']; diff --git a/src/app/utils/SlotFunctions.js b/src/app/utils/SlotFunctions.js index 566df62b..32e79cba 100644 --- a/src/app/utils/SlotFunctions.js +++ b/src/app/utils/SlotFunctions.js @@ -1,7 +1,4 @@ import React from 'react'; -import cn from 'classnames'; -import Module from '../shipyard/Module'; -import { Infinite } from '../components/SvgIcons'; import Persist from '../stores/Persist'; import * as ModuleUtils from '../shipyard/ModuleUtils';