Fix compiler warnings and remove dead code.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user