Skip to content

Commit

Permalink
Continuing clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
philstopford committed Sep 14, 2020
1 parent 610c5db commit 6b3baa7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Common/Variance/UI/UIHandlers_setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ void setupGUI()
entropyControl.abortRunFunc = abortRun;
entropyControl.abortRunFuncMT = abortRunMT;
entropyControl.multithreadWarningFunc = displayMultiThreadWarning;
entropyControl.tooManyPolysWarningFunc = tooManyPolysWarning;
entropyControl.simRunningFunc = simRunning;
entropyControl.simRunningUIFunc = simRunningUIFunc;
entropyControl.implantSimRunningUIFunc = simRunningUIFunc;
Expand Down Expand Up @@ -198,24 +197,6 @@ void addPrefsHandlers()
});
}

bool tooManyPolysWarning()
{
Application.Instance.Invoke(() =>
{
if (!commonVars.wasWarningShown())
{
commonVars.setWarningShown(true);
DialogResult dR = MessageBox.Show("More than 25 polygons involved in at least one layer - are you sure you want to continue?", "This could take a while", MessageBoxButtons.YesNo);
if (dR == DialogResult.No)
{
return true;
}
}
return false;
});
return true;
}

void clearAbortFlag()
{
commonVars.runAbort = false;
Expand Down

0 comments on commit 6b3baa7

Please sign in to comment.