Remove some more unused fields
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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,10 +41,7 @@ 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)
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user