diff options
| author | Robin Burchell <robin.burchell@jollamobile.com> | 2014-05-09 13:21:12 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-09 13:51:32 +0200 |
| commit | bfa1a43edc2f34f87143318d0ecd3db2284b560f (patch) | |
| tree | 6a5bceafcaecd1f30d04a080f636574773078514 /src/libraries/qmfclient/support/qmailnamespace.cpp | |
| parent | eb036498f27ee4c5243922da68622bd30aaeffed (diff) | |
[SIC]: Remove QMail::lastSystemErrorMessage().
This sort of thing doesn't really belong in QMail's namespace, and it
was unused now anyway.
Change-Id: I6c9dc3a5618ca8f76946c68d838a480364fef07c
Reviewed-by: Valerio Valerio <valerio.valerio@jollamobile.com>
Diffstat (limited to 'src/libraries/qmfclient/support/qmailnamespace.cpp')
| -rw-r--r-- | src/libraries/qmfclient/support/qmailnamespace.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/libraries/qmfclient/support/qmailnamespace.cpp b/src/libraries/qmfclient/support/qmailnamespace.cpp index bc7cc04b..831ba9f7 100644 --- a/src/libraries/qmfclient/support/qmailnamespace.cpp +++ b/src/libraries/qmfclient/support/qmailnamespace.cpp @@ -590,31 +590,6 @@ QStringList QMail::messageIdentifiers(const QString& aStr) return result; } -/*! - Returns the text describing the last error reported by the underlying platform. -*/ -QString QMail::lastSystemErrorMessage() -{ -#ifdef Q_OS_WIN - LPVOID buffer; - - ::FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, - ::GetLastError(), - 0, - reinterpret_cast<LPTSTR>(&buffer), - 0, - NULL); - - QString result(QString::fromUtf16(reinterpret_cast<const ushort*>(buffer))); - ::LocalFree(buffer); - - return result; -#else - return QString(::strerror(errno)); -#endif -} - QMap<QString, QStringList> standardFolderTranslations() { QMap<QString, QStringList> folderTranslations; |
