mirror of
https://github.com/ppy/osu
synced 2025-01-05 13:50:03 +00:00
Remove unnecessary exception, replace with default styling.
This commit is contained in:
parent
423c1cb006
commit
7c9c7f93ae
@ -107,8 +107,6 @@ namespace osu.Desktop.Tests.Visual
|
||||
public DrawableEditorMenuBarItem(MenuItem item)
|
||||
: base(item)
|
||||
{
|
||||
if (!(item is EditorMenuBarItem))
|
||||
throw new ArgumentException($"{nameof(item)} must be a {nameof(EditorMenuBarItem)}.");
|
||||
|
||||
Text.Padding = new MarginPadding(8);
|
||||
|
||||
@ -181,8 +179,6 @@ namespace osu.Desktop.Tests.Visual
|
||||
public DrawableEditorMenuItem(MenuItem item)
|
||||
: base(item)
|
||||
{
|
||||
if (!(item is EditorMenuItem))
|
||||
throw new ArgumentException($"{nameof(item)} must be a {nameof(EditorMenuItem)}.");
|
||||
|
||||
isSpacer = item is EditorMenuSpacer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user