From 647adabea33846e8591d798c469ad62628588732 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 13 Aug 2014 01:44:22 +0000 Subject: [PATCH] Simplify even more! --- BizHawk.Emulation.Common/Interfaces/CoreComms.cs | 5 ----- BizHawk.Emulation.Cores/Consoles/WonderSwan/WonderSwan.cs | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/BizHawk.Emulation.Common/Interfaces/CoreComms.cs b/BizHawk.Emulation.Common/Interfaces/CoreComms.cs index 1bf1dac908..788ef1a6b4 100644 --- a/BizHawk.Emulation.Common/Interfaces/CoreComms.cs +++ b/BizHawk.Emulation.Common/Interfaces/CoreComms.cs @@ -135,11 +135,6 @@ namespace BizHawk.Emulation.Common this.Remove(action); } } - - public bool Has - { - get { return this.Any(); } - } } public class MemoryCallbackSystem diff --git a/BizHawk.Emulation.Cores/Consoles/WonderSwan/WonderSwan.cs b/BizHawk.Emulation.Cores/Consoles/WonderSwan/WonderSwan.cs index 287f542a4c..affbba05ef 100644 --- a/BizHawk.Emulation.Cores/Consoles/WonderSwan/WonderSwan.cs +++ b/BizHawk.Emulation.Cores/Consoles/WonderSwan/WonderSwan.cs @@ -392,7 +392,7 @@ namespace BizHawk.Emulation.Cores.WonderSwan CoreComm.MemoryCallbackSystem.HasWrites ? WriteCallbackD : null, CoreComm.MemoryCallbackSystem.HasExecutes ? ExecCallbackD : null); BizSwan.bizswan_setbuttoncallback(Core, - CoreComm.InputCallback.Has ? ButtonCallbackD : null); + CoreComm.InputCallback.Any() ? ButtonCallbackD : null); } #endregion