Fix warnings
This commit is contained in:
@@ -17,7 +17,6 @@ namespace Content.Client.UserInterface
|
||||
[Dependency] private readonly IPrototypeManager _prototypes = default!;
|
||||
|
||||
private readonly Menu _window;
|
||||
private bool _closed;
|
||||
|
||||
public AdminAddReagentEui()
|
||||
{
|
||||
@@ -32,8 +31,6 @@ namespace Content.Client.UserInterface
|
||||
|
||||
public override void Closed()
|
||||
{
|
||||
_closed = true;
|
||||
|
||||
_window.Close();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
||||
public class PillComponent : FoodComponent, IUse, IAfterInteract
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystem = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
public override string Name => "Pill";
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@ namespace Content.Server.GameObjects.Components.Nutrition
|
||||
public class FoodComponent : Component, IUse, IAfterInteract
|
||||
{
|
||||
[Dependency] private readonly IEntitySystemManager _entitySystem = default!;
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
public override string Name => "Food";
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged
|
||||
{
|
||||
[Dependency] private readonly IMapManager _mapManager = default!;
|
||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
private TimeSpan _lastFireTime;
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@ namespace Content.Server.GameObjects.EntitySystems.GameMode
|
||||
public sealed class SuspicionEndTimerSystem : EntitySystem, IResettingEntitySystem
|
||||
{
|
||||
[Dependency] private readonly IPlayerManager _playerManager = null!;
|
||||
[Dependency] private readonly IGameTiming _timing = null!;
|
||||
[Dependency] private readonly IGameTicker _gameTicker = null!;
|
||||
|
||||
private TimeSpan? _endTime;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ using YamlDotNet.RepresentationModel;
|
||||
namespace Content.Server.Holiday
|
||||
{
|
||||
[Prototype("holiday")]
|
||||
public class HolidayPrototype : IPrototype, IIndexedPrototype, IExposeData
|
||||
public class HolidayPrototype : IPrototype, IIndexedPrototype
|
||||
{
|
||||
[ViewVariables] public string Name { get; private set; } = string.Empty;
|
||||
[ViewVariables] public string ID { get; private set; } = string.Empty;
|
||||
|
||||
@@ -9,7 +9,6 @@ namespace Content.Server.Holiday.ShouldCelebrate
|
||||
public bool ShouldCelebrate(DateTime date, HolidayPrototype holiday)
|
||||
{
|
||||
var chinese = new ChineseLunisolarCalendar();
|
||||
var gregorian = new GregorianCalendar();
|
||||
|
||||
var chineseNewYear = chinese.ToDateTime(date.Year, 1, 1, 0, 0, 0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user