Fix warnings

This commit is contained in:
Vera Aguilera Puerto
2021-02-12 10:53:02 +01:00
parent 9ee0ec4106
commit 4678e44edc
7 changed files with 1 additions and 10 deletions

View File

@@ -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();
}

View File

@@ -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";

View File

@@ -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";

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);