summaryrefslogtreecommitdiff
path: root/shared/systemFunctions.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:06 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:08:06 +0200
commitfbe76102e941b9f1edaf236788e42678f05fdf9a (patch)
treef5f538316019fa89be8dc478103490c3a826f3ac /shared/systemFunctions.cpp
parent3.8 (diff)
downloadFreeFileSync-fbe76102e941b9f1edaf236788e42678f05fdf9a.tar.gz
FreeFileSync-fbe76102e941b9f1edaf236788e42678f05fdf9a.tar.bz2
FreeFileSync-fbe76102e941b9f1edaf236788e42678f05fdf9a.zip
3.9
Diffstat (limited to 'shared/systemFunctions.cpp')
-rw-r--r--shared/systemFunctions.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/shared/systemFunctions.cpp b/shared/systemFunctions.cpp
deleted file mode 100644
index 41ce9377..00000000
--- a/shared/systemFunctions.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// **************************************************************************
-// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) 2008-2010 ZenJu (zhnmju123 AT gmx.de) *
-// **************************************************************************
-//
-#include "systemFunctions.h"
-
-#ifdef FFS_WIN
-#include <wx/msw/wrapwin.h> //includes "windows.h"
-
-#elif defined FFS_LINUX
-#include <cstring>
-#include <cerrno>
-#endif
-
-
-
-#ifdef FFS_WIN
-wxString FreeFileSync::getLastErrorFormatted(unsigned long lastError) //try to get additional Windows error information
-{
- //determine error code if none was specified
- if (lastError == 0)
- lastError = ::GetLastError();
-
- wxString output = wxString(wxT("Windows Error Code ")) + wxString::Format(wxT("%u"), lastError);
-
- WCHAR buffer[1001];
- if (::FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_MAX_WIDTH_MASK, 0, lastError, 0, buffer, 1001, NULL) != 0)
- output += wxString(wxT(": ")) + buffer;
- return output;
-}
-
-#elif defined FFS_LINUX
-wxString FreeFileSync::getLastErrorFormatted(int lastError) //try to get additional Linux error information
-{
- //determine error code if none was specified
- if (lastError == 0)
- lastError = errno; //don't use "::", errno is a macro!
-
- wxString output = wxString(wxT("Linux Error Code ")) + wxString::Format(wxT("%i"), lastError);
- output += wxString(wxT(": ")) + wxString::FromUTF8(::strerror(lastError));
- return output;
-}
-#endif
bgstack15