diff --git a/Content.Client/GameObjects/Components/Body/Surgery/SurgeryWindow.cs b/Content.Client/GameObjects/Components/Body/Surgery/SurgeryWindow.cs index ededa9338f..d380569b46 100644 --- a/Content.Client/GameObjects/Components/Body/Surgery/SurgeryWindow.cs +++ b/Content.Client/GameObjects/Components/Body/Surgery/SurgeryWindow.cs @@ -77,8 +77,6 @@ namespace Content.Client.GameObjects.Components.Body.Surgery private SpriteView SpriteView { get; } - private Control EntityControl { get; } - private Label DisplayText { get; } public int CallbackData { get; } diff --git a/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs b/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs index 617f14df12..02d30dce09 100644 --- a/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs +++ b/Content.Client/GameObjects/Components/Storage/ClientStorageComponent.cs @@ -279,19 +279,6 @@ namespace Content.Client.GameObjects.Components.Storage args.Button.Pressed = false; StorageEntity.Interact(control.EntityUid); } - - /// - /// Function assigned to button that adds items to the storage entity. - /// - private void OnAddItemButtonPressed(BaseButton.ButtonEventArgs args) - { - var controlledEntity = IoCManager.Resolve().LocalPlayer.ControlledEntity; - - if (controlledEntity.TryGetComponent(out HandsComponent hands)) - { - StorageEntity.SendNetworkMessage(new InsertEntityMessage()); - } - } } /// diff --git a/Content.Client/GameObjects/EntitySystems/GasTileOverlaySystem.cs b/Content.Client/GameObjects/EntitySystems/GasTileOverlaySystem.cs index f1e7f9f8b1..2af2cfcb84 100644 --- a/Content.Client/GameObjects/EntitySystems/GasTileOverlaySystem.cs +++ b/Content.Client/GameObjects/EntitySystems/GasTileOverlaySystem.cs @@ -24,8 +24,6 @@ namespace Content.Client.GameObjects.EntitySystems [Dependency] private readonly IMapManager _mapManager = default!; [Dependency] private readonly IResourceCache _resourceCache = default!; - private readonly Dictionary _fireCache = new(); - // Gas overlays private readonly float[] _timer = new float[Atmospherics.TotalNumberOfGases]; private readonly float[][] _frameDelays = new float[Atmospherics.TotalNumberOfGases][]; diff --git a/Content.Client/Research/LatheMenu.cs b/Content.Client/Research/LatheMenu.cs index 584e04562e..d419fb45a6 100644 --- a/Content.Client/Research/LatheMenu.cs +++ b/Content.Client/Research/LatheMenu.cs @@ -27,7 +27,6 @@ namespace Content.Client.Research public LatheBoundUserInterface Owner { get; set; } - private readonly List _recipes = new(); private readonly List _shownRecipes = new(); public LatheMenu(LatheBoundUserInterface owner = null) diff --git a/Content.Client/Sandbox/SandboxManager.cs b/Content.Client/Sandbox/SandboxManager.cs index 4d432d0fa6..c6c7d03f20 100644 --- a/Content.Client/Sandbox/SandboxManager.cs +++ b/Content.Client/Sandbox/SandboxManager.cs @@ -103,7 +103,6 @@ namespace Content.Client.Sandbox private EntitySpawnWindow _spawnWindow; private TileSpawnWindow _tilesSpawnWindow; private bool _sandboxWindowToggled; - private bool SpawnEntitiesButton { get; set; } public void Initialize() { diff --git a/Content.Server/GameObjects/Components/Chemistry/ReagentDispenserComponent.cs b/Content.Server/GameObjects/Components/Chemistry/ReagentDispenserComponent.cs index 44ea32f8b8..8546b0bb41 100644 --- a/Content.Server/GameObjects/Components/Chemistry/ReagentDispenserComponent.cs +++ b/Content.Server/GameObjects/Components/Chemistry/ReagentDispenserComponent.cs @@ -14,6 +14,7 @@ using Content.Shared.GameObjects.EntitySystems; using Content.Shared.Interfaces; using Content.Shared.Interfaces.GameObjects.Components; using Content.Shared.GameObjects.Verbs; +using JetBrains.Annotations; using Robust.Server.GameObjects.Components.Container; using Robust.Server.GameObjects.Components.UserInterface; using Robust.Server.GameObjects.EntitySystems; @@ -48,7 +49,7 @@ namespace Content.Server.GameObjects.Components.Chemistry [ViewVariables] private bool HasBeaker => _beakerContainer.ContainedEntity != null; [ViewVariables] private ReagentUnit _dispenseAmount = ReagentUnit.New(10); - [ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent(); + [UsedImplicitly] [ViewVariables] private SolutionContainerComponent? Solution => _beakerContainer.ContainedEntity.GetComponent(); [ViewVariables] private bool Powered => !Owner.TryGetComponent(out PowerReceiverComponent? receiver) || receiver.Powered; diff --git a/Content.Server/GameObjects/Components/Markers/TrashSpawnerComponent.cs b/Content.Server/GameObjects/Components/Markers/TrashSpawnerComponent.cs index 8392dfa84f..6d2b0c1c89 100644 --- a/Content.Server/GameObjects/Components/Markers/TrashSpawnerComponent.cs +++ b/Content.Server/GameObjects/Components/Markers/TrashSpawnerComponent.cs @@ -21,9 +21,6 @@ namespace Content.Server.GameObjects.Components.Markers [ViewVariables(VVAccess.ReadWrite)] public List RarePrototypes { get; set; } = new(); - [ViewVariables(VVAccess.ReadWrite)] - private List _gameRules = new(); - [ViewVariables(VVAccess.ReadWrite)] public float RareChance { get; set; } = 0.05f; diff --git a/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs b/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs index 0fe04590dd..375f1881c4 100644 --- a/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs +++ b/Content.Tests/Server/Preferences/ServerDbSqliteTests.cs @@ -18,8 +18,6 @@ namespace Content.Tests.Server.Preferences [TestFixture] public class ServerDbSqliteTests : RobustUnitTest { - private const int MaxCharacterSlots = 10; - private static HumanoidCharacterProfile CharlieCharlieson() { return new(