Remove some more unused fields

This commit is contained in:
metalgearsloth
2021-10-13 17:38:20 +11:00
parent 7fe7c46373
commit 07303e7a4b
7 changed files with 2 additions and 16 deletions

View File

@@ -27,9 +27,6 @@ namespace Content.Client.Actions
[Dependency] private readonly IPlayerManager _playerManager = default!; [Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly IItemSlotManager _itemSlotManager = default!; [Dependency] private readonly IItemSlotManager _itemSlotManager = default!;
[ComponentDependency] private readonly HandsComponent? _handsComponent = null;
[ComponentDependency] private readonly ClientInventoryComponent? _inventoryComponent = null;
private ActionsUI? _ui; private ActionsUI? _ui;
private EntityUid _highlightedEntity; private EntityUid _highlightedEntity;

View File

@@ -19,7 +19,6 @@ namespace Content.Client.Popups
public class PopupSystem : SharedPopupSystem public class PopupSystem : SharedPopupSystem
{ {
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly IEyeManager _eyeManager = default!; [Dependency] private readonly IEyeManager _eyeManager = default!;
private readonly List<PopupLabel> _aliveLabels = new(); private readonly List<PopupLabel> _aliveLabels = new();

View File

@@ -38,7 +38,6 @@ namespace Content.Server.Administration
[Dependency] private readonly IGameTiming _gameTiming = default!; [Dependency] private readonly IGameTiming _gameTiming = default!;
[Dependency] private readonly EuiManager _euiManager = default!; [Dependency] private readonly EuiManager _euiManager = default!;
[Dependency] private readonly GhostRoleSystem _ghostRoleSystem = default!; [Dependency] private readonly GhostRoleSystem _ghostRoleSystem = default!;
[Dependency] private readonly VerbSystem _verbSystem = default!;
public override void Initialize() public override void Initialize()
{ {

View File

@@ -32,8 +32,6 @@ namespace Content.Server.Kitchen.Components
void IActivate.Activate(ActivateEventArgs eventArgs) void IActivate.Activate(ActivateEventArgs eventArgs)
{ {
SpriteComponent? sprite;
if (_meatParts == 0) if (_meatParts == 0)
{ {
return; return;
@@ -43,11 +41,8 @@ namespace Content.Server.Kitchen.Components
if (!string.IsNullOrEmpty(_meatPrototype)) if (!string.IsNullOrEmpty(_meatPrototype))
{ {
var meat = Owner.EntityManager.SpawnEntity(_meatPrototype, Owner.Transform.Coordinates); var meat = Owner.EntityManager.SpawnEntity(_meatPrototype, Owner.Transform.Coordinates);
if (meat != null)
{
meat.Name = _meatName; meat.Name = _meatName;
} }
}
if (_meatParts != 0) if (_meatParts != 0)
{ {

View File

@@ -54,7 +54,7 @@ namespace Content.Shared.Gravity
} }
[Serializable, NetSerializable] [Serializable, NetSerializable]
protected sealed class GravityComponentState : ComponentState private sealed class GravityComponentState : ComponentState
{ {
public bool Enabled { get; } public bool Enabled { get; }

View File

@@ -19,7 +19,6 @@ namespace Content.Shared.Interaction
public abstract class SharedInteractionSystem : EntitySystem public abstract class SharedInteractionSystem : EntitySystem
{ {
[Dependency] private readonly SharedPhysicsSystem _sharedBroadphaseSystem = default!; [Dependency] private readonly SharedPhysicsSystem _sharedBroadphaseSystem = default!;
[Dependency] private readonly SharedPopupSystem _popupSystem = default!;
public const float InteractionRange = 2; public const float InteractionRange = 2;
public const float InteractionRangeSquared = InteractionRange * InteractionRange; public const float InteractionRangeSquared = InteractionRange * InteractionRange;

View File

@@ -21,9 +21,6 @@ namespace Content.Shared.Pulling.Components
{ {
public override string Name => "Pullable"; public override string Name => "Pullable";
// At this point this field exists solely for the component dependency (which is mandatory).
[ComponentDependency] private readonly PhysicsComponent? _physics = default!;
public float? MaxDistance => PullJoint?.MaxLength; public float? MaxDistance => PullJoint?.MaxLength;
/// <summary> /// <summary>