mirror of
https://github.com/ppy/osu
synced 2025-01-04 13:22:08 +00:00
remove unused code
This commit is contained in:
parent
e3a7b6969a
commit
e67253ed1e
@ -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();
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user