summaryrefslogtreecommitdiff
path: root/shared/globalFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/globalFunctions.cpp')
-rw-r--r--shared/globalFunctions.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/shared/globalFunctions.cpp b/shared/globalFunctions.cpp
index c02a1d77..63831e1a 100644
--- a/shared/globalFunctions.cpp
+++ b/shared/globalFunctions.cpp
@@ -8,30 +8,9 @@
#include <wx/msgdlg.h>
#include <wx/file.h>
#include <wx/stopwatch.h>
-#include <cmath>
#include "systemConstants.h"
-int globalFunctions::wxStringToInt(const wxString& number)
-{
- long result = 0;
- if (number.ToLong(&result))
- return result;
- else
- return 0; //don't throw exceptions here: wxEmptyString shall be interpreted as 0
-}
-
-
-double globalFunctions::wxStringToDouble(const wxString& number)
-{
- double result = 0;
- if (number.ToDouble(&result))
- return result;
- else
- return 0; //don't throw exceptions here: wxEmptyString shall be interpreted as 0
-}
-
-
size_t globalFunctions::getDigitCount(size_t number) //count number of digits
{
return number == 0 ? 1 : static_cast<size_t>(::log10(static_cast<double>(number))) + 1;
bgstack15