mirror of https://gitee.com/openkylin/qemu.git
qerror: Remove assert_no_error()
This is no longer needed, and is obsoleted by error_abort. Remove. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
87ea75d5e1
commit
5942787183
|
@ -29,7 +29,6 @@ typedef struct QError {
|
|||
QString *qerror_human(const QError *qerror);
|
||||
void qerror_report(ErrorClass err_class, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
|
||||
void qerror_report_err(Error *err);
|
||||
void assert_no_error(Error *err);
|
||||
|
||||
/*
|
||||
* QError class list
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue