Fix a bunch of warnings.

This commit is contained in:
Pieter-Jan Briers
2019-12-22 13:50:04 +01:00
parent 2b8645b60f
commit 21b29e26e2
8 changed files with 6 additions and 12 deletions

View File

@@ -11,8 +11,10 @@ namespace Robust.Client.GameObjects.EntitySystems
{
public class SpriteSystem : EntitySystem
{
#pragma warning disable 649
[Dependency] private readonly IClyde _clyde;
[Dependency] private readonly IEyeManager _eyeManager;
#pragma warning restore 649
public SpriteSystem()
{

View File

@@ -93,8 +93,6 @@ namespace Robust.Client.Graphics.Clyde
private bool _quartResLights = true;
private bool _disposing;
public override bool Initialize()
{
_debugStats = new ClydeDebugStats();
@@ -419,7 +417,6 @@ namespace Robust.Client.Graphics.Clyde
public void Dispose()
{
_disposing = true;
ShutdownWindowing();
_shutdownAudio();
}

View File

@@ -6,7 +6,6 @@ using Robust.Client.Interfaces.UserInterface;
using Robust.Client.UserInterface;
using Robust.Shared.IoC;
using Robust.Shared.Log;
using Robust.Client.Interfaces.State;
using Robust.Client.ResourceManagement;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
@@ -33,7 +32,6 @@ namespace Robust.Client.State.States
[Dependency] private readonly IGameController _controllerProxy;
[Dependency] private readonly ILocalizationManager _loc;
[Dependency] private readonly IResourceCache _resourceCache;
[Dependency] private readonly IStateManager stateManager;
[Dependency] private readonly IUserInterfaceManager userInterfaceManager;
#pragma warning restore 649

View File

@@ -32,8 +32,6 @@ namespace Robust.Client.UserInterface
public event Action<Control> OnVisibilityChanged;
private int _uniqueChildId;
private bool _stylingDirty;
/// <summary>

View File

@@ -9,7 +9,9 @@ namespace Robust.Client.UserInterface.CustomControls
{
internal sealed class DebugClydePanel : PanelContainer
{
#pragma warning disable 649
[Dependency] private readonly IClydeInternal _clydeInternal;
#pragma warning restore 649
private readonly Label _label;

View File

@@ -71,15 +71,12 @@ namespace Robust.Client.UserInterface.CustomControls
var screenSize = _displayManager.ScreenSize;
int mouseWorldMap;
int mouseWorldGrid;
GridCoordinates mouseWorldPos;
IEntity mouseEntity = null;
TileRef tile;
try
{
var coords = eyeManager.ScreenToWorld(new ScreenCoordinates(mouseScreenPos));
mouseWorldMap = (int) _mapManager.GetGrid(coords.GridID).ParentMapId;
mouseWorldGrid = (int) coords.GridID;
mouseWorldPos = coords;
tile = _mapManager.GetGrid(coords.GridID).GetTileRef(coords);
@@ -87,7 +84,6 @@ namespace Robust.Client.UserInterface.CustomControls
catch
{
mouseWorldPos = eyeManager.ScreenToWorld(mouseScreenPos);
mouseWorldGrid = 0;
mouseWorldMap = 0;
tile = new TileRef();
}

View File

@@ -9,7 +9,9 @@ namespace Robust.Client.UserInterface.CustomControls
{
internal class DebugInputPanel : PanelContainer
{
#pragma warning disable 649
[Dependency] private readonly IInputManager _inputManager;
#pragma warning restore 649
private readonly Label _label;

View File

@@ -39,7 +39,6 @@ namespace Robust.Shared.Map
private readonly Dictionary<MapIndices, IMapChunkInternal> _chunks = new Dictionary<MapIndices, IMapChunkInternal>();
private readonly IMapManagerInternal _mapManager;
private Vector2 _worldPosition;
/// <summary>
/// Initializes a new instance of the <see cref="MapGrid"/> class.