Remove unnecessary exception, replace with default styling.

This commit is contained in:
smoogipooo 2017-08-28 15:42:21 +09:00
parent 423c1cb006
commit 7c9c7f93ae

View File

@ -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;
}