remove unused code

This commit is contained in:
Dao Heng Liu 2023-07-19 00:25:07 +01:00
parent e3a7b6969a
commit e67253ed1e
2 changed files with 0 additions and 62 deletions

View File

@ -16,31 +16,5 @@ namespace osu.Game.Tournament.Screens.Editors.Components
Icon = FontAwesome.Solid.Trash;
DangerousAction = storage.Clear;
}
// // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// // See the LICENCE file in the repository root for full licence text.
//
// using osu.Framework.Graphics.Containers;
// using osu.Framework.Graphics.Sprites;
// using osu.Game.Overlays.Dialog;
// using osu.Game.Tournament.Screens.Ladder.Components;
//
// namespace osu.Game.Tournament.Screens.Editors.Components
// {
// public partial class LadderResetTeamsDialog : DangerousActionDialog
// {
// public LadderResetTeamsDialog(Container<DrawableTournamentMatch> matchesContainer)
// {
// HeaderText = @"Confirm reset teams?";
// Icon = FontAwesome.Solid.Undo;
// DangerousAction = () =>
// {
// foreach (var p in matchesContainer)
// p.Match.Reset();
// };
// }
// }
// }
}
}

View File

@ -7,17 +7,13 @@ using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Logging;
using osu.Framework.Testing;
using osu.Game.Graphics;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays;
using osu.Game.Overlays.Settings;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Models;
using osu.Game.Tournament.Screens.Editors.Components;
using osuTK;
namespace osu.Game.Tournament.Screens.Editors
@ -25,38 +21,6 @@ namespace osu.Game.Tournament.Screens.Editors
public partial class RoundEditorScreen : TournamentEditorScreen<RoundEditorScreen.RoundRow, TournamentRound>
{
protected override BindableList<TournamentRound> Storage => LadderInfo.Rounds;
//
// [Resolved]
// private IDialogOverlay? dialogOverlay { get; set; }
//
// [BackgroundDependencyLoader]
// private void load()
// {
// // ControlPanel.Add(new TourneyButton
// // {
// // RelativeSizeAxes = Axes.X,
// // Text = "aaaaaa",
// // Action = () =>
// // {
// // Logger.Log("asdaf", LoggingTarget.Runtime, LogLevel.Important);
// // }
// // });
// // Logger.Log($"Current action is {.Action}", LoggingTarget.Runtime, LogLevel.Important);
//
// dialogOverlay?.Push(new TournamentClearAllDialog(Storage));
//
// var clearAllButton = ControlPanel.ChildrenOfType<DangerousSettingsButton>().FirstOrDefault();
//
// if (clearAllButton != null)
// {
// clearAllButton.Action = () =>
// {
// Logger.Log("doing the thing!", LoggingTarget.Runtime, LogLevel.Important);
// Logger.Log($"currently, dialogOverlay is {dialogOverlay}", LoggingTarget.Runtime, LogLevel.Important);
// dialogOverlay?.Push(new TournamentClearAllDialog(Storage));
// };
// }
// }
public partial class RoundRow : CompositeDrawable, IModelBacked<TournamentRound>
{