From d18fbf40cc8fdbb00bf1fe7076813f341403ce2d Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 7 Jan 2020 15:48:31 +0000 Subject: [PATCH] remove unused report_error() function Signed-off-by: Ivailo Monev --- src/core/qcorecommon_p.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/core/qcorecommon_p.h b/src/core/qcorecommon_p.h index 298b6f042..6d80a2120 100644 --- a/src/core/qcorecommon_p.h +++ b/src/core/qcorecommon_p.h @@ -7,8 +7,6 @@ # include #endif -#include - QT_BEGIN_NAMESPACE // enough space to hold BOM, each char as surrogate pair and terminator @@ -35,13 +33,6 @@ static inline QString fromstrerror_helper(const int errorcode) #endif } -static inline void report_error(int code, const char *where, const char *what) -{ - if (code != 0) - qWarning("%s: %s failure: %s", where, what, qPrintable(qt_error_string(code))); -} - - #ifndef QT_NO_COMPRESS static inline quint32 qCRC32(const char *data, uint len) {