Fix compiler warnings and remove dead code.

This commit is contained in:
Pieter-Jan Briers
2019-05-28 00:30:34 +02:00
parent 996b45a04f
commit 9c3587b00e
12 changed files with 15 additions and 37 deletions

View File

@@ -8,8 +8,6 @@ namespace Content.Client.Construction
{
public class ConstructionButton : Button
{
private readonly IDisplayManager _displayManager;
public ConstructorComponent Owner
{
get => Menu.Owner;
@@ -17,9 +15,8 @@ namespace Content.Client.Construction
}
ConstructionMenu Menu;
public ConstructionButton(IDisplayManager displayManager)
public ConstructionButton()
{
_displayManager = displayManager;
PerformLayout();
}
@@ -38,7 +35,7 @@ namespace Content.Client.Construction
private void PerformLayout()
{
Menu = new ConstructionMenu(_displayManager);
Menu = new ConstructionMenu();
Menu.AddToScreen();
}

View File

@@ -49,7 +49,7 @@ namespace Content.Client.Construction
List<CategoryNode> FlattenedCategories;
PlacementManager Placement;
public ConstructionMenu(IDisplayManager displayMan) : base(displayMan)
public ConstructionMenu()
{
Size = new Vector2(500.0f, 350.0f);
}