mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
remove unused qErrnoWarning() functions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ef993f1657
commit
260f1d6b57
2 changed files with 0 additions and 32 deletions
|
@ -1587,35 +1587,6 @@ void qCritical(const char *msg, ...)
|
|||
va_end(ap);
|
||||
}
|
||||
|
||||
|
||||
void qErrnoWarning(const char *msg, ...)
|
||||
{
|
||||
// qt_error_string() will allocate anyway, so we don't have
|
||||
// to be careful here (like we do in plain qWarning())
|
||||
QString buf;
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
if (Q_LIKELY(msg))
|
||||
buf.vsprintf(msg, ap);
|
||||
va_end(ap);
|
||||
|
||||
qCritical("%s (%s)", buf.toLocal8Bit().constData(), qt_error_string(-1).toLocal8Bit().constData());
|
||||
}
|
||||
|
||||
void qErrnoWarning(int code, const char *msg, ...)
|
||||
{
|
||||
// qt_error_string() will allocate anyway, so we don't have
|
||||
// to be careful here (like we do in plain qWarning())
|
||||
QString buf;
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
if (Q_LIKELY(msg))
|
||||
buf.vsprintf(msg, ap);
|
||||
va_end(ap);
|
||||
|
||||
qCritical("%s (%s)", buf.toLocal8Bit().constData(), qt_error_string(code).toLocal8Bit().constData());
|
||||
}
|
||||
|
||||
/*!
|
||||
\relates <QtGlobal>
|
||||
|
||||
|
|
|
@ -603,9 +603,6 @@ Q_CORE_EXPORT void qFatal(const char *, ...) /* print fatal message and exit */
|
|||
#endif
|
||||
;
|
||||
|
||||
Q_CORE_EXPORT void qErrnoWarning(int code, const char *msg, ...);
|
||||
Q_CORE_EXPORT void qErrnoWarning(const char *msg, ...);
|
||||
|
||||
Q_CORE_EXPORT void qt_assert(const char *assertion, const char *file, int line);
|
||||
Q_CORE_EXPORT void qt_assert_x(const char *where, const char *what, const char *file, int line);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue