OSDN Git Service

remove now unused report_error()
authorIvailo Monev <xakepa10@laimg.moc>
Tue, 2 Jul 2019 21:51:24 +0000 (21:51 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Tue, 2 Jul 2019 21:51:24 +0000 (21:51 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/qcorecommon_p.h

index 1d8544b..4790298 100644 (file)
@@ -25,12 +25,6 @@ static inline QString fromstrerror_helper(const char *str, const QByteArray &)
 }
 #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)));
-}
-
 QT_END_NAMESPACE
 
 #endif // QCORECOMMON_P_H