From 1d13924e0a9051d8f5582b9922c0e8bcd27d2a54 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Tue, 21 Mar 2017 01:05:48 +0800 Subject: [PATCH] Remove redundant type parameter. Nested type has implicit type parameter from base type. --- osu.Game/Graphics/UserInterface/OsuTabControl.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osu.Game/Graphics/UserInterface/OsuTabControl.cs b/osu.Game/Graphics/UserInterface/OsuTabControl.cs index d5699eddaf..de81757fdf 100644 --- a/osu.Game/Graphics/UserInterface/OsuTabControl.cs +++ b/osu.Game/Graphics/UserInterface/OsuTabControl.cs @@ -16,7 +16,7 @@ namespace osu.Game.Graphics.UserInterface { public class OsuTabControl : TabControl { - protected override DropDownMenu CreateDropDownMenu() => new OsuTabDropDownMenu(); + protected override DropDownMenu CreateDropDownMenu() => new OsuTabDropDownMenu(); protected override TabItem CreateTabItem(T value) => new OsuTabItem { Value = value }; @@ -45,7 +45,7 @@ namespace osu.Game.Graphics.UserInterface set { accentColour = value; - var dropDown = DropDown as OsuTabDropDownMenu; + var dropDown = DropDown as OsuTabDropDownMenu; if (dropDown != null) dropDown.AccentColour = value; foreach (var item in TabContainer.Children.OfType>()) @@ -53,7 +53,7 @@ namespace osu.Game.Graphics.UserInterface } } - public class OsuTabDropDownMenu : OsuDropDownMenu + public class OsuTabDropDownMenu : OsuDropDownMenu { protected override DropDownHeader CreateHeader() => new OsuTabDropDownHeader { @@ -62,7 +62,7 @@ namespace osu.Game.Graphics.UserInterface Origin = Anchor.TopRight, }; - protected override DropDownMenuItem CreateDropDownItem(string key, T1 value) + protected override DropDownMenuItem CreateDropDownItem(string key, T value) { var item = base.CreateDropDownItem(key, value); item.ForegroundColourHover = Color4.Black;