diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:03:20 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:03:20 +0200 |
commit | 528635604eea1d8c679a3d038e2f00030ef72444 (patch) | |
tree | 9c3cbec29aa7d3e209939662e040b9342c9e7400 /shared/globalFunctions.h | |
parent | 3.1 (diff) | |
download | FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.gz FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.bz2 FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.zip |
3.2
Diffstat (limited to 'shared/globalFunctions.h')
-rw-r--r-- | shared/globalFunctions.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/shared/globalFunctions.h b/shared/globalFunctions.h index 74387959..06238236 100644 --- a/shared/globalFunctions.h +++ b/shared/globalFunctions.h @@ -10,10 +10,7 @@ #include <memory> #include <sstream> #include <fstream> -#include <wx/stream.h> -class wxInputStream; -class wxOutputStream; class wxStopWatch; @@ -61,9 +58,6 @@ unsigned int getDigitCount(const unsigned int number); //count number of digits template <class T> T readNumber(std::ifstream& stream); template <class T> void writeNumber(std::ofstream& stream, T number); -template <class T> T readNumber(wxInputStream& stream); -template <class T> void writeNumber(wxOutputStream& stream, T number); - inline wxLongLong convertToSigned(const wxULongLong number) { @@ -221,24 +215,6 @@ void globalFunctions::writeNumber(std::ofstream& stream, T number) } -template <class T> -inline -T globalFunctions::readNumber(wxInputStream& stream) -{ - T result = 0; - stream.Read(&result, sizeof(T)); - return result; -} - - -template <class T> -inline -void globalFunctions::writeNumber(wxOutputStream& stream, T number) -{ - stream.Write(&number, sizeof(T)); -} - - inline wxString globalFunctions::numberToWxString(const unsigned int number) { |