mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
error, qerror: drop QDict member
Used to store error information, but it's unused now. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
3647f5c161
commit
6d3f0dbb30
3 changed files with 0 additions and 9 deletions
4
error.c
4
error.c
|
@ -19,7 +19,6 @@
|
|||
|
||||
struct Error
|
||||
{
|
||||
QDict *obj;
|
||||
char *msg;
|
||||
ErrorClass err_class;
|
||||
};
|
||||
|
@ -51,8 +50,6 @@ Error *error_copy(const Error *err)
|
|||
err_new = g_malloc0(sizeof(*err));
|
||||
err_new->msg = g_strdup(err->msg);
|
||||
err_new->err_class = err->err_class;
|
||||
err_new->obj = err->obj;
|
||||
QINCREF(err_new->obj);
|
||||
|
||||
return err_new;
|
||||
}
|
||||
|
@ -75,7 +72,6 @@ const char *error_get_pretty(Error *err)
|
|||
void error_free(Error *err)
|
||||
{
|
||||
if (err) {
|
||||
QDECREF(err->obj);
|
||||
g_free(err->msg);
|
||||
g_free(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue