From d7360f87092d8698c1d88f1f436da0c9ef91c23d Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 10 Oct 2019 15:48:11 +0200 Subject: [PATCH] Fix some compiler warnings. --- Content.Server/AI/WanderProcessor.cs | 4 ---- .../GameObjects/Components/Power/WirePlacerComponent.cs | 7 +++---- .../Components/Weapon/Melee/MeleeWeaponComponent.cs | 4 ---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Content.Server/AI/WanderProcessor.cs b/Content.Server/AI/WanderProcessor.cs index 714bc523b3..45764b322d 100644 --- a/Content.Server/AI/WanderProcessor.cs +++ b/Content.Server/AI/WanderProcessor.cs @@ -6,9 +6,7 @@ using Content.Server.Interfaces.Chat; using Content.Shared.Physics; using Robust.Server.AI; using Robust.Server.GameObjects; -using Robust.Server.Interfaces.GameObjects; using Robust.Shared.GameObjects; -using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.Physics; using Robust.Shared.Interfaces.Timing; using Robust.Shared.IoC; @@ -26,9 +24,7 @@ namespace Content.Server.AI { #pragma warning disable 649 [Dependency] private readonly IPhysicsManager _physMan; - [Dependency] private readonly IServerEntityManager _entMan; [Dependency] private readonly IGameTiming _timeMan; - [Dependency] private readonly IEntitySystemManager _entSysMan; [Dependency] private readonly IChatManager _chatMan; #pragma warning restore 649 diff --git a/Content.Server/GameObjects/Components/Power/WirePlacerComponent.cs b/Content.Server/GameObjects/Components/Power/WirePlacerComponent.cs index 1003be1702..7a255ee507 100644 --- a/Content.Server/GameObjects/Components/Power/WirePlacerComponent.cs +++ b/Content.Server/GameObjects/Components/Power/WirePlacerComponent.cs @@ -13,11 +13,10 @@ namespace Content.Server.GameObjects.Components.Power [RegisterComponent] internal class WirePlacerComponent : Component, IAfterAttack { -#pragma warning disable 169 +#pragma warning disable 649 [Dependency] private readonly IServerEntityManager _entityManager; [Dependency] private readonly IMapManager _mapManager; - [Dependency] private readonly ITileDefinitionManager _tileDefinitionManager; -#pragma warning restore 169 +#pragma warning restore 649 /// public override string Name => "WirePlacer"; @@ -46,7 +45,7 @@ namespace Content.Server.GameObjects.Components.Power if (found) return; - + var newWire = _entityManager.SpawnEntityAt("Wire", grid.GridTileToLocal(snapPos)); if (newWire.TryGetComponent(out SpriteComponent wireSpriteComp) && Owner.TryGetComponent(out SpriteComponent itemSpriteComp)) diff --git a/Content.Server/GameObjects/Components/Weapon/Melee/MeleeWeaponComponent.cs b/Content.Server/GameObjects/Components/Weapon/Melee/MeleeWeaponComponent.cs index 622fc3cc64..5c68c53324 100644 --- a/Content.Server/GameObjects/Components/Weapon/Melee/MeleeWeaponComponent.cs +++ b/Content.Server/GameObjects/Components/Weapon/Melee/MeleeWeaponComponent.cs @@ -8,10 +8,8 @@ using Robust.Server.Interfaces.GameObjects; using Robust.Shared.GameObjects; using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.Interfaces.Map; -using Robust.Shared.Interfaces.Timing; using Robust.Shared.IoC; using Robust.Shared.Maths; -using Robust.Shared.Prototypes; using Robust.Shared.Serialization; using Robust.Shared.ViewVariables; @@ -26,8 +24,6 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee [Dependency] private readonly IMapManager _mapManager; [Dependency] private readonly IServerEntityManager _serverEntityManager; [Dependency] private readonly IEntitySystemManager _entitySystemManager; - [Dependency] private readonly IGameTiming _gameTiming; - [Dependency] private readonly IPrototypeManager _prototypeManager; #pragma warning restore 649 private int _damage = 1;