Remove unused parameters.

This commit is contained in:
Matthias Mailänder
2022-03-13 12:02:52 +01:00
committed by abcdefg30
parent ea243b8558
commit 0e7ad43425
205 changed files with 451 additions and 455 deletions

View File

@@ -129,7 +129,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var paletteDropDown = panel.GetOrNull<DropDownButtonWidget>("PALETTE_SELECTOR");
if (paletteDropDown != null)
{
paletteDropDown.OnMouseDown = _ => ShowPaletteDropdown(paletteDropDown, world);
paletteDropDown.OnMouseDown = _ => ShowPaletteDropdown(paletteDropDown);
paletteDropDown.GetText = () => currentPalette;
paletteDropDown.IsVisible = () => currentSprites != null || currentVoxel != null;
panel.GetOrNull<LabelWidget>("PALETTE_DESC").IsVisible = () => currentSprites != null || currentVoxel != null;
@@ -587,7 +587,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}
}
bool ShowPaletteDropdown(DropDownButtonWidget dropdown, World world)
bool ShowPaletteDropdown(DropDownButtonWidget dropdown)
{
Func<string, ScrollItemWidget, ScrollItemWidget> setupItem = (name, itemTemplate) =>
{