diff --git a/osu.Game/Overlays/Settings/SettingsFooter.cs b/osu.Game/Overlays/Settings/SettingsFooter.cs index 70cb73581c..41ea266af8 100644 --- a/osu.Game/Overlays/Settings/SettingsFooter.cs +++ b/osu.Game/Overlays/Settings/SettingsFooter.cs @@ -1,7 +1,6 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. -using System.Collections.Generic; using osu.Framework.Allocation; using osu.Framework.Development; using osu.Framework.Graphics; @@ -9,7 +8,6 @@ using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.UserInterface; using osu.Framework.Logging; -using osu.Framework.Platform; using osu.Game.Graphics; using osu.Game.Graphics.Containers; using osu.Game.Graphics.Sprites; @@ -84,9 +82,6 @@ namespace osu.Game.Overlays.Settings { private readonly string version; - [Resolved] - private Clipboard clipboard { get; set; } = null!; - [Resolved] private OsuColour colours { get; set; } = null!; @@ -119,18 +114,10 @@ namespace osu.Game.Overlays.Settings }); } - public MenuItem[] ContextMenuItems + public MenuItem[] ContextMenuItems => new MenuItem[] { - get - { - List menuItems = new List() - { - new OsuMenuItem("Copy version", MenuItemType.Standard, () => game?.CopyStringToClipboard(version)) - }; - - return menuItems.ToArray(); - } - } + new OsuMenuItem("Copy version", MenuItemType.Standard, () => game?.CopyStringToClipboard(version)) + }; } } }