mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
Cleanup warnings: CS0114, CS0414, CS9107 (#42859)
* Cleanup warnings: CS0114, CS0414, CS9107 * I shouldn't trust IDE autocorrection
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Content.Shared.FeedbackSystem;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Client.FeedbackPopup;
|
||||
@@ -10,7 +9,7 @@ public sealed class ClientFeedbackManager : SharedFeedbackManager
|
||||
/// <summary>
|
||||
/// A read-only set representing the currently displayed feedback popups.
|
||||
/// </summary>
|
||||
public IReadOnlySet<ProtoId<FeedbackPopupPrototype>> DisplayedPopups => _displayedPopups;
|
||||
public override IReadOnlySet<ProtoId<FeedbackPopupPrototype>> DisplayedPopups => _displayedPopups;
|
||||
|
||||
private readonly HashSet<ProtoId<FeedbackPopupPrototype>> _displayedPopups = [];
|
||||
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
using System.Linq;
|
||||
using Content.Client.Body;
|
||||
using Content.Client.Guidebook;
|
||||
using Content.Client.Inventory;
|
||||
using Content.Client.Lobby.UI;
|
||||
using Content.Client.Players.PlayTimeTracking;
|
||||
using Content.Client.Station;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Clothing;
|
||||
using Content.Shared.GameTicking;
|
||||
using Content.Shared.Humanoid.Markings;
|
||||
using Content.Shared.Humanoid.Prototypes;
|
||||
using Content.Shared.Preferences;
|
||||
@@ -20,7 +14,6 @@ using Robust.Client.State;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controllers;
|
||||
using Robust.Shared.Configuration;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -37,8 +30,6 @@ public sealed class LobbyUIController : UIController, IOnStateEntered<LobbyState
|
||||
[Dependency] private readonly IStateManager _stateManager = default!;
|
||||
[Dependency] private readonly JobRequirementsManager _requirements = default!;
|
||||
[Dependency] private readonly MarkingManager _markings = default!;
|
||||
[UISystemDependency] private readonly ClientInventorySystem _inventory = default!;
|
||||
[UISystemDependency] private readonly StationSpawningSystem _spawn = default!;
|
||||
[UISystemDependency] private readonly GuidebookSystem _guide = default!;
|
||||
|
||||
private CharacterSetupGui? _characterSetup;
|
||||
@@ -163,7 +154,7 @@ public sealed class LobbyUIController : UIController, IOnStateEntered<LobbyState
|
||||
var (characterGui, profileEditor) = EnsureGui();
|
||||
characterGui.ReloadCharacterPickers();
|
||||
profileEditor.SetProfile(
|
||||
(HumanoidCharacterProfile?) _preferencesManager.Preferences?.SelectedCharacter,
|
||||
_preferencesManager.Preferences?.SelectedCharacter,
|
||||
_preferencesManager.Preferences?.SelectedCharacterIndex);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@ public sealed class MarkingTestAttribute : TestAttribute, IWrapTestMethod
|
||||
{
|
||||
public override TestResult Execute(TestExecutionContext context)
|
||||
{
|
||||
var fixture = inner.Test.Fixture as MarkingsViewModelTests;
|
||||
var fixture = innerCommand.Test.Fixture as MarkingsViewModelTests;
|
||||
fixture!.Client.WaitAssertion(() =>
|
||||
{
|
||||
context.CurrentResult = inner.Execute(context);
|
||||
context.CurrentResult = innerCommand.Execute(context);
|
||||
})
|
||||
.Wait();
|
||||
return context.CurrentResult;
|
||||
|
||||
Reference in New Issue
Block a user