From 153e823f78b641f0981ce54386540c77174d201f Mon Sep 17 00:00:00 2001 From: adelikat Date: Fri, 2 Jan 2015 21:33:03 +0000 Subject: [PATCH] Ram Search - a minor code refactor - remove a functional call that is only used once in another function and just do the code there --- BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs b/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs index 74c2d17edf..65256b1c90 100644 --- a/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs +++ b/BizHawk.Client.EmuHawk/tools/Watch/RamSearch.cs @@ -891,15 +891,6 @@ namespace BizHawk.Client.EmuHawk } } - private void ToggleAutoSearch() - { - _autoSearch ^= true; - AutoSearchCheckBox.Checked = _autoSearch; - DoSearchToolButton.Enabled = - SearchButton.Enabled = - !_autoSearch; - } - private void GoToSpecifiedAddress() { WatchListView.SelectedIndices.Clear(); @@ -1289,7 +1280,11 @@ namespace BizHawk.Client.EmuHawk private void AutoSearchMenuItem_Click(object sender, EventArgs e) { - ToggleAutoSearch(); + _autoSearch ^= true; + AutoSearchCheckBox.Checked = _autoSearch; + DoSearchToolButton.Enabled = + SearchButton.Enabled = + !_autoSearch; } private void ExcludeRamWatchMenuItem_Click(object sender, EventArgs e)