From 0414e15a751df950bf7f54be1f86bc538608a72e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 1 Mar 2020 16:41:47 -0600 Subject: [PATCH] InputRoll - remove designer hacks, they don't crash the designer anymore --- .../CustomControls/InputRoll/RollColumns.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/RollColumns.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/RollColumns.cs index af4228aed6..498e48affe 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/RollColumns.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/RollColumns.cs @@ -31,9 +31,7 @@ namespace BizHawk.Client.EmuHawk { if (this.Any(c => c.Name == column.Name)) { - // The designer sucks, doing nothing for now - return; - //throw new InvalidOperationException("A column with this name already exists."); + throw new InvalidOperationException("A column with this name already exists."); } base.Add(column); @@ -47,9 +45,6 @@ namespace BizHawk.Client.EmuHawk { if (this.Any(c => c.Name == column.Name)) { - // The designer sucks, doing nothing for now - return; - throw new InvalidOperationException("A column with this name already exists."); } } @@ -62,9 +57,6 @@ namespace BizHawk.Client.EmuHawk { if (this.Any(c => c.Name == column.Name)) { - // The designer sucks, doing nothing for now - return; - throw new InvalidOperationException("A column with this name already exists."); }