Remove some now useless logic in the Restart() method of some tools (checking IsHandleCreated and IsDisposed)
This commit is contained in:
parent
1504f8d441
commit
ffe3be09a4
|
@ -38,10 +38,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void Restart()
|
||||
{
|
||||
if (!IsHandleCreated || IsDisposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// TODO
|
||||
}
|
||||
|
||||
public bool AskSaveChanges()
|
||||
|
|
|
@ -133,11 +133,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void Restart()
|
||||
{
|
||||
if (!IsHandleCreated || IsDisposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var theDomain = _domain.Name.ToLower() == "file on disk" ? 999 : GetDomainInt(_domain.Name);
|
||||
|
||||
SetMemoryDomainMenu(); // Calls update routines, TODO: refactor, that is confusing!
|
||||
|
|
|
@ -109,11 +109,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void Restart()
|
||||
{
|
||||
if (!IsHandleCreated || IsDisposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ClearList();
|
||||
TraceView.Columns[0].Text = Tracer.Header;
|
||||
}
|
||||
|
|
|
@ -286,11 +286,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void Restart()
|
||||
{
|
||||
if (!IsHandleCreated || IsDisposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_settings.Domain = Core.MemoryDomains.MainMemory;
|
||||
MessageLabel.Text = "Search restarted";
|
||||
DoDomainSizeCheck();
|
||||
|
|
Loading…
Reference in New Issue