mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-25 17:51:15 +00:00
qerror: Finally unused, clean up
Remove it except for two things in qerror.h: * Two #include to be cleaned up separately to avoid cluttering this patch. * The QERR_ macros. Mark as obsolete. Backports commit 4629ed1e98961bbe678db68ef5f4342ff174a6c3 from qemu
This commit is contained in:
parent
76c16a46c7
commit
15553fc60d
|
@ -13,24 +13,10 @@
|
||||||
#define QERROR_H
|
#define QERROR_H
|
||||||
|
|
||||||
#include "qapi/qmp/qstring.h"
|
#include "qapi/qmp/qstring.h"
|
||||||
#include "qapi/error.h"
|
|
||||||
#include "qapi-types.h"
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
typedef struct QError {
|
|
||||||
QObject_HEAD;
|
|
||||||
char *err_msg;
|
|
||||||
ErrorClass err_class;
|
|
||||||
} 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);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* QError class list
|
* These macros will go away, please don't use in new code, and do not
|
||||||
* Please keep the definitions in alphabetical order.
|
* add new ones!
|
||||||
* Use scripts/check-qerror.sh to check.
|
|
||||||
*/
|
*/
|
||||||
#define QERR_BASE_NOT_FOUND \
|
#define QERR_BASE_NOT_FOUND \
|
||||||
"Base '%s' not found"
|
"Base '%s' not found"
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
util-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
|
util-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
|
||||||
util-obj-y += qerror.o
|
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
/*
|
|
||||||
* QError Module
|
|
||||||
*
|
|
||||||
* Copyright (C) 2009 Red Hat Inc.
|
|
||||||
*
|
|
||||||
* Authors:
|
|
||||||
* Luiz Capitulino <lcapitulino@redhat.com>
|
|
||||||
*
|
|
||||||
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
|
|
||||||
* See the COPYING.LIB file in the top-level directory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "qapi/qmp/qjson.h"
|
|
||||||
#include "qapi/qmp/qerror.h"
|
|
||||||
#include "qemu-common.h"
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* qerror_human(): Format QError data into human-readable string.
|
|
||||||
*/
|
|
||||||
QString *qerror_human(const QError *qerror)
|
|
||||||
{
|
|
||||||
return qstring_from_str(qerror->err_msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
void qerror_report(ErrorClass eclass, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Evil... */
|
|
||||||
struct Error
|
|
||||||
{
|
|
||||||
char *msg;
|
|
||||||
ErrorClass err_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
void qerror_report_err(Error *err)
|
|
||||||
{
|
|
||||||
}
|
|
Loading…
Reference in a new issue