From 4678e44edc183161fc72f57e026e7275ef5726a8 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Fri, 12 Feb 2021 10:53:02 +0100 Subject: [PATCH] Fix warnings --- Content.Client/UserInterface/AdminAddReagentUI.cs | 3 --- .../GameObjects/Components/Chemistry/PillComponent.cs | 1 - .../GameObjects/Components/Nutrition/FoodComponent.cs | 1 - .../Components/Weapon/Ranged/ServerRangedWeaponComponent.cs | 1 - .../EntitySystems/GameMode/SuspicionEndTimerSystem.cs | 2 -- Content.Server/Holiday/HolidayPrototype.cs | 2 +- Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs | 1 - 7 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Content.Client/UserInterface/AdminAddReagentUI.cs b/Content.Client/UserInterface/AdminAddReagentUI.cs index adb9986a71..1a7cab3114 100644 --- a/Content.Client/UserInterface/AdminAddReagentUI.cs +++ b/Content.Client/UserInterface/AdminAddReagentUI.cs @@ -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(); } diff --git a/Content.Server/GameObjects/Components/Chemistry/PillComponent.cs b/Content.Server/GameObjects/Components/Chemistry/PillComponent.cs index e4e8a622d7..1750dae021 100644 --- a/Content.Server/GameObjects/Components/Chemistry/PillComponent.cs +++ b/Content.Server/GameObjects/Components/Chemistry/PillComponent.cs @@ -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"; diff --git a/Content.Server/GameObjects/Components/Nutrition/FoodComponent.cs b/Content.Server/GameObjects/Components/Nutrition/FoodComponent.cs index 55e5d863f7..4daf60762e 100644 --- a/Content.Server/GameObjects/Components/Nutrition/FoodComponent.cs +++ b/Content.Server/GameObjects/Components/Nutrition/FoodComponent.cs @@ -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"; diff --git a/Content.Server/GameObjects/Components/Weapon/Ranged/ServerRangedWeaponComponent.cs b/Content.Server/GameObjects/Components/Weapon/Ranged/ServerRangedWeaponComponent.cs index bdbfc17415..c5875dba60 100644 --- a/Content.Server/GameObjects/Components/Weapon/Ranged/ServerRangedWeaponComponent.cs +++ b/Content.Server/GameObjects/Components/Weapon/Ranged/ServerRangedWeaponComponent.cs @@ -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; diff --git a/Content.Server/GameObjects/EntitySystems/GameMode/SuspicionEndTimerSystem.cs b/Content.Server/GameObjects/EntitySystems/GameMode/SuspicionEndTimerSystem.cs index b1e040a8ab..e312d62fac 100644 --- a/Content.Server/GameObjects/EntitySystems/GameMode/SuspicionEndTimerSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/GameMode/SuspicionEndTimerSystem.cs @@ -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; diff --git a/Content.Server/Holiday/HolidayPrototype.cs b/Content.Server/Holiday/HolidayPrototype.cs index 0e98dc4b84..6843d4eef8 100644 --- a/Content.Server/Holiday/HolidayPrototype.cs +++ b/Content.Server/Holiday/HolidayPrototype.cs @@ -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; diff --git a/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs b/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs index 54e90b223d..6e26b7846b 100644 --- a/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs +++ b/Content.Server/Holiday/ShouldCelebrate/ChineseNewYear.cs @@ -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);