From cd46188efe312c15d5d8c2c5f727030cd73307b4 Mon Sep 17 00:00:00 2001 From: Meerkov Date: Wed, 28 Sep 2016 21:24:09 -0700 Subject: [PATCH] Remove Unused Variable UpdateFrame can never be true, so all of this code is pointless. --- BizHawk.Client.EmuHawk/MainForm.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 890f896e00..b600429f96 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -612,7 +612,6 @@ namespace BizHawk.Client.EmuHawk public bool FastForward = false; public bool TurboFastForward = false; public bool RestoreReadWriteOnStop = false; - public bool UpdateFrame = false; private int? _pauseOnFrame; public int? PauseOnFrame // If set, upon completion of this frame, the client wil pause @@ -2729,12 +2728,7 @@ namespace BizHawk.Client.EmuHawk } bool isRewinding = suppressCaptureRewind = Rewind(ref runFrame, currentTimestamp); - - if (UpdateFrame) - { - runFrame = true; - } - + float atten = Global.Config.SoundVolume / 100.0f; if (!Global.Config.SoundEnabledNormal) atten = 0; @@ -2908,11 +2902,6 @@ namespace BizHawk.Client.EmuHawk //PressRewind = false; } - if (UpdateFrame) - { - UpdateFrame = false; - } - GlobalWin.Sound.UpdateSound(atten); }