From 3414abb970bc1cd31f1653c82da5ede40e94b10e Mon Sep 17 00:00:00 2001 From: Mervill Date: Sun, 1 Sep 2024 14:22:50 -0700 Subject: [PATCH] Remove unused IoC dependency references. (#31704) Remove unused IoC dependencies --- Content.Client/Clothing/ClientClothingSystem.cs | 1 - Content.Client/Commands/MappingClientSideSetupCommand.cs | 1 - Content.Client/Computer/ComputerBoundUserInterface.cs | 2 -- Content.Client/Light/Components/LightBehaviourComponent.cs | 3 --- .../MachineLinking/UI/SignalTimerBoundUserInterface.cs | 2 -- Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs | 1 - Content.Client/Verbs/VerbSystem.cs | 1 - Content.Server/Administration/BanPanelEui.cs | 1 - Content.Server/Antag/AntagSelectionSystem.cs | 3 --- Content.Server/Communications/CommunicationsConsoleSystem.cs | 1 - Content.Server/Damage/Systems/DamageOtherOnHitSystem.cs | 1 - Content.Server/Forensics/Systems/ForensicScannerSystem.cs | 1 - Content.Server/GameTicking/GameTicker.cs | 3 --- Content.Server/MassMedia/Systems/NewsSystem.cs | 1 - Content.Server/Shuttles/Systems/EmergencyShuttleSystem.cs | 1 - Content.Server/Station/Systems/StationSpawningSystem.cs | 2 -- Content.Server/Thief/Systems/ThiefBeaconSystem.cs | 1 - Content.Shared/Damage/Systems/DamageOnAttackedSystem.cs | 2 -- Content.Shared/Damage/Systems/DamageOnInteractSystem.cs | 2 -- Content.Shared/Execution/SharedExecutionSystem.cs | 2 -- Content.Shared/Mobs/Systems/MobStateSystem.cs | 1 - 21 files changed, 33 deletions(-) diff --git a/Content.Client/Clothing/ClientClothingSystem.cs b/Content.Client/Clothing/ClientClothingSystem.cs index 96bbcc54f2..27d77eda49 100644 --- a/Content.Client/Clothing/ClientClothingSystem.cs +++ b/Content.Client/Clothing/ClientClothingSystem.cs @@ -50,7 +50,6 @@ public sealed class ClientClothingSystem : ClothingSystem }; [Dependency] private readonly IResourceCache _cache = default!; - [Dependency] private readonly ISerializationManager _serialization = default!; [Dependency] private readonly InventorySystem _inventorySystem = default!; [Dependency] private readonly DisplacementMapSystem _displacement = default!; diff --git a/Content.Client/Commands/MappingClientSideSetupCommand.cs b/Content.Client/Commands/MappingClientSideSetupCommand.cs index 3255e85e18..d17f1fccaf 100644 --- a/Content.Client/Commands/MappingClientSideSetupCommand.cs +++ b/Content.Client/Commands/MappingClientSideSetupCommand.cs @@ -13,7 +13,6 @@ internal sealed class MappingClientSideSetupCommand : LocalizedCommands { [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!; [Dependency] private readonly ILightManager _lightManager = default!; - [Dependency] private readonly IStateManager _stateManager = default!; public override string Command => "mappingclientsidesetup"; diff --git a/Content.Client/Computer/ComputerBoundUserInterface.cs b/Content.Client/Computer/ComputerBoundUserInterface.cs index 11c26b252e..9f34eeda20 100644 --- a/Content.Client/Computer/ComputerBoundUserInterface.cs +++ b/Content.Client/Computer/ComputerBoundUserInterface.cs @@ -11,8 +11,6 @@ namespace Content.Client.Computer [Virtual] public class ComputerBoundUserInterface : ComputerBoundUserInterfaceBase where TWindow : BaseWindow, IComputerWindow, new() where TState : BoundUserInterfaceState { - [Dependency] private readonly IDynamicTypeFactory _dynamicTypeFactory = default!; - [ViewVariables] private TWindow? _window; diff --git a/Content.Client/Light/Components/LightBehaviourComponent.cs b/Content.Client/Light/Components/LightBehaviourComponent.cs index 9df793ee93..246863ba60 100644 --- a/Content.Client/Light/Components/LightBehaviourComponent.cs +++ b/Content.Client/Light/Components/LightBehaviourComponent.cs @@ -359,9 +359,6 @@ namespace Content.Client.Light.Components [RegisterComponent] public sealed partial class LightBehaviourComponent : SharedLightBehaviourComponent, ISerializationHooks { - [Dependency] private readonly IEntityManager _entMan = default!; - [Dependency] private readonly IRobustRandom _random = default!; - public const string KeyPrefix = nameof(LightBehaviourComponent); public sealed class AnimationContainer diff --git a/Content.Client/MachineLinking/UI/SignalTimerBoundUserInterface.cs b/Content.Client/MachineLinking/UI/SignalTimerBoundUserInterface.cs index 11abe8c245..0607c76831 100644 --- a/Content.Client/MachineLinking/UI/SignalTimerBoundUserInterface.cs +++ b/Content.Client/MachineLinking/UI/SignalTimerBoundUserInterface.cs @@ -7,8 +7,6 @@ namespace Content.Client.MachineLinking.UI; public sealed class SignalTimerBoundUserInterface : BoundUserInterface { - [Dependency] private readonly IGameTiming _gameTiming = default!; - [ViewVariables] private SignalTimerWindow? _window; diff --git a/Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs b/Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs index 24a802a60f..b152f5ead8 100644 --- a/Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs +++ b/Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs @@ -15,7 +15,6 @@ public sealed partial class StationAiMenu : RadialMenu { [Dependency] private readonly IClyde _clyde = default!; [Dependency] private readonly IEntityManager _entManager = default!; - [Dependency] private readonly IEyeManager _eyeManager = default!; public event Action? OnAiRadial; diff --git a/Content.Client/Verbs/VerbSystem.cs b/Content.Client/Verbs/VerbSystem.cs index e28f48d6a5..6d8b3a2243 100644 --- a/Content.Client/Verbs/VerbSystem.cs +++ b/Content.Client/Verbs/VerbSystem.cs @@ -22,7 +22,6 @@ namespace Content.Client.Verbs [Dependency] private readonly PopupSystem _popupSystem = default!; [Dependency] private readonly ExamineSystem _examine = default!; [Dependency] private readonly TagSystem _tagSystem = default!; - [Dependency] private readonly SharedTransformSystem _transform = default!; [Dependency] private readonly IStateManager _stateManager = default!; [Dependency] private readonly EntityLookupSystem _entityLookup = default!; [Dependency] private readonly IPlayerManager _playerManager = default!; diff --git a/Content.Server/Administration/BanPanelEui.cs b/Content.Server/Administration/BanPanelEui.cs index b3253f0d0c..e746e9c725 100644 --- a/Content.Server/Administration/BanPanelEui.cs +++ b/Content.Server/Administration/BanPanelEui.cs @@ -19,7 +19,6 @@ public sealed class BanPanelEui : BaseEui [Dependency] private readonly IEntityManager _entities = default!; [Dependency] private readonly ILogManager _log = default!; [Dependency] private readonly IPlayerLocator _playerLocator = default!; - [Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IChatManager _chat = default!; [Dependency] private readonly IAdminManager _admins = default!; diff --git a/Content.Server/Antag/AntagSelectionSystem.cs b/Content.Server/Antag/AntagSelectionSystem.cs index 270b39b3a2..3f33d01116 100644 --- a/Content.Server/Antag/AntagSelectionSystem.cs +++ b/Content.Server/Antag/AntagSelectionSystem.cs @@ -40,15 +40,12 @@ public sealed partial class AntagSelectionSystem : GameRuleSystem public sealed class ThiefBeaconSystem : EntitySystem { - [Dependency] private readonly SharedTransformSystem _transform = default!; [Dependency] private readonly SharedAudioSystem _audio = default!; [Dependency] private readonly SharedPopupSystem _popup = default!; [Dependency] private readonly MindSystem _mind = default!; diff --git a/Content.Shared/Damage/Systems/DamageOnAttackedSystem.cs b/Content.Shared/Damage/Systems/DamageOnAttackedSystem.cs index ab5866c5aa..29de43fba4 100644 --- a/Content.Shared/Damage/Systems/DamageOnAttackedSystem.cs +++ b/Content.Shared/Damage/Systems/DamageOnAttackedSystem.cs @@ -15,8 +15,6 @@ namespace Content.Shared.Damage.Systems; public sealed class DamageOnAttackedSystem : EntitySystem { [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!; - [Dependency] private readonly IGameTiming _gameTiming = default!; - [Dependency] private readonly INetManager _net = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; [Dependency] private readonly SharedAudioSystem _audioSystem = default!; [Dependency] private readonly SharedPopupSystem _popupSystem = default!; diff --git a/Content.Shared/Damage/Systems/DamageOnInteractSystem.cs b/Content.Shared/Damage/Systems/DamageOnInteractSystem.cs index 4b50a1fd0e..cc3b3f6d5d 100644 --- a/Content.Shared/Damage/Systems/DamageOnInteractSystem.cs +++ b/Content.Shared/Damage/Systems/DamageOnInteractSystem.cs @@ -13,8 +13,6 @@ namespace Content.Shared.Damage.Systems; public sealed class DamageOnInteractSystem : EntitySystem { [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!; - [Dependency] private readonly IGameTiming _gameTiming = default!; - [Dependency] private readonly INetManager _net = default!; [Dependency] private readonly DamageableSystem _damageableSystem = default!; [Dependency] private readonly SharedAudioSystem _audioSystem = default!; [Dependency] private readonly SharedPopupSystem _popupSystem = default!; diff --git a/Content.Shared/Execution/SharedExecutionSystem.cs b/Content.Shared/Execution/SharedExecutionSystem.cs index a1105dd644..c34cecc3da 100644 --- a/Content.Shared/Execution/SharedExecutionSystem.cs +++ b/Content.Shared/Execution/SharedExecutionSystem.cs @@ -31,8 +31,6 @@ public sealed class SharedExecutionSystem : EntitySystem [Dependency] private readonly SharedCombatModeSystem _combat = default!; [Dependency] private readonly SharedExecutionSystem _execution = default!; [Dependency] private readonly SharedMeleeWeaponSystem _melee = default!; - [Dependency] private readonly SharedMindSystem _mind = default!; - [Dependency] private readonly SharedTransformSystem _transform = default!; /// public override void Initialize() diff --git a/Content.Shared/Mobs/Systems/MobStateSystem.cs b/Content.Shared/Mobs/Systems/MobStateSystem.cs index 323efa2242..d3e55f0d69 100644 --- a/Content.Shared/Mobs/Systems/MobStateSystem.cs +++ b/Content.Shared/Mobs/Systems/MobStateSystem.cs @@ -12,7 +12,6 @@ public partial class MobStateSystem : EntitySystem { [Dependency] private readonly ActionBlockerSystem _blocker = default!; [Dependency] private readonly SharedAppearanceSystem _appearance = default!; - [Dependency] private readonly SharedPhysicsSystem _physics = default!; [Dependency] private readonly StandingStateSystem _standing = default!; [Dependency] private readonly ISharedAdminLogManager _adminLogger = default!; [Dependency] private readonly ILogManager _logManager = default!;