]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Minor dependency and variable cleanup. (#36730)
authorKyle Tyo <36606155+VerinSenpai@users.noreply.github.com>
Sat, 19 Apr 2025 16:11:34 +0000 (12:11 -0400)
committerGitHub <noreply@github.com>
Sat, 19 Apr 2025 16:11:34 +0000 (18:11 +0200)
removal of misc unused or extra dependency definitions.

Content.Client/RCD/RCDConstructionGhostSystem.cs
Content.Client/UserInterface/Systems/Actions/ActionUIController.cs
Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs
Content.Server/Station/Systems/StationJobsSystem.Roundstart.cs

index 0b6876005a47c5ea01476f870953384083d958a1..23dcf6485feac7da801cfb0f9aebf268f0c23b26 100644 (file)
@@ -13,7 +13,6 @@ namespace Content.Client.RCD;
 public sealed class RCDConstructionGhostSystem : EntitySystem
 {
     [Dependency] private readonly IPlayerManager _playerManager = default!;
-    [Dependency] private readonly RCDSystem _rcdSystem = default!;
     [Dependency] private readonly IPlacementManager _placementManager = default!;
     [Dependency] private readonly IPrototypeManager _protoManager = default!;
 
index a4157517ce04760094b680eea71b87b2bbda07e2..8d512c23ab4a754c4d6d4e088038d47e1d551bef 100644 (file)
@@ -45,7 +45,6 @@ public sealed class ActionUIController : UIController, IOnStateChanged<GameplayS
     [Dependency] private readonly IPlayerManager _playerManager = default!;
     [Dependency] private readonly IInputManager _input = default!;
 
-    [UISystemDependency] private readonly SharedChargesSystem _sharedCharges = default!;
     [UISystemDependency] private readonly ActionsSystem? _actionsSystem = default;
     [UISystemDependency] private readonly InteractionOutlineSystem? _interactionOutline = default;
     [UISystemDependency] private readonly TargetOutlineSystem? _targetOutline = default;
index 9e7ef6be4d652520f87416690de68d41f84966c5..cc12f1b8678cc6dbcf427b6bbe96cd25015c6f81 100644 (file)
@@ -29,8 +29,6 @@ public sealed class ActionButton : Control, IEntityControl
     private bool _depressed;
     private bool _toggled;
 
-    private int _lastCharges;
-
     public BoundKeyFunction? KeyBind
     {
         set
index 8045cfed462aa18bae2482f5cd318ed4b0220b6c..c6c682bcf3d936efc6a3f48ea41f597589540e0b 100644 (file)
@@ -19,7 +19,6 @@ public sealed partial class StationJobsSystem
 {
     [Dependency] private readonly IPrototypeManager _prototypeManager = default!;
     [Dependency] private readonly IBanManager _banManager = default!;
-    [Dependency] private readonly IPlayerManager _playerManager = default!;
     [Dependency] private readonly AntagSelectionSystem _antag = default!;
 
     private Dictionary<int, HashSet<string>> _jobsByWeight = default!;
@@ -366,7 +365,7 @@ public sealed partial class StationJobsSystem
                 if (!_prototypeManager.TryIndex(jobId, out var job))
                     continue;
 
-                if (!job.CanBeAntag && (!_playerManager.TryGetSessionById(player, out var session) || antagBlocked.Contains(session)))
+                if (!job.CanBeAntag && (!_player.TryGetSessionById(player, out var session) || antagBlocked.Contains(session)))
                     continue;
 
                 if (weight is not null && job.Weight != weight.Value)