Remove Unused Variable

UpdateFrame can never be true, so all of this code is pointless.
This commit is contained in:
Meerkov 2016-09-28 21:24:09 -07:00
parent 4e99ed17ae
commit cd46188efe
1 changed files with 1 additions and 12 deletions

View File

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