提交 59427871 编写于 作者: P Peter Crosthwaite 提交者: Luiz Capitulino

qerror: Remove assert_no_error()

This is no longer needed, and is obsoleted by error_abort. Remove.
Signed-off-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
上级 87ea75d5
...@@ -29,7 +29,6 @@ typedef struct QError { ...@@ -29,7 +29,6 @@ typedef struct QError {
QString *qerror_human(const QError *qerror); QString *qerror_human(const QError *qerror);
void qerror_report(ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(2, 3); void qerror_report(ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
void qerror_report_err(Error *err); void qerror_report_err(Error *err);
void assert_no_error(Error *err);
/* /*
* QError class list * QError class list
......
...@@ -121,14 +121,6 @@ void qerror_report_err(Error *err) ...@@ -121,14 +121,6 @@ void qerror_report_err(Error *err)
} }
} }
void assert_no_error(Error *err)
{
if (err) {
qerror_report_err(err);
abort();
}
}
/** /**
* qobject_to_qerror(): Convert a QObject into a QError * qobject_to_qerror(): Convert a QObject into a QError
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册