From fb52d3fc5d85b4028201297abb21944d63ee448e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 1 Mar 2020 16:18:20 -0600 Subject: [PATCH] cleanups --- .../inputAdapters/BitwiseAdapters.cs | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/BizHawk.Client.Common/inputAdapters/BitwiseAdapters.cs b/BizHawk.Client.Common/inputAdapters/BitwiseAdapters.cs index 69e2ae8de8..a938561e1d 100644 --- a/BizHawk.Client.Common/inputAdapters/BitwiseAdapters.cs +++ b/BizHawk.Client.Common/inputAdapters/BitwiseAdapters.cs @@ -18,10 +18,7 @@ namespace BizHawk.Client.Common // pass floats solely from the original source // this works in the code because SourceOr is the autofire controller - public float GetFloat(string name) - { - return Source.GetFloat(name); - } + public float GetFloat(string name) => Source.GetFloat(name); internal IController Source { get; set; } internal IController SourceAnd { get; set; } @@ -43,16 +40,12 @@ namespace BizHawk.Client.Common // pass floats solely from the original source // this works in the code because SourceOr is the autofire controller - public float GetFloat(string name) - { - return Source.GetFloat(name); - } + public float GetFloat(string name) => Source.GetFloat(name); internal IController Source { get; set; } internal IController SourceXor { get; set; } } - public class ORAdapter : IController { public ControllerDefinition Definition => Source.Definition; @@ -65,10 +58,7 @@ namespace BizHawk.Client.Common // pass floats solely from the original source // this works in the code because SourceOr is the autofire controller - public float GetFloat(string name) - { - return Source.GetFloat(name); - } + public float GetFloat(string name) => Source.GetFloat(name); internal IController Source { get; set; } internal IController SourceOr { get; set; }