qapi: Remove qobject_to_X() functions

They are no longer needed now.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20180224154033.29559-5-mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Max Reitz 2018-02-24 16:40:30 +01:00 committed by Eric Blake
parent 7dc847ebba
commit cb51b976ba
10 changed files with 0 additions and 60 deletions

View file

@ -39,17 +39,6 @@ bool qbool_get_bool(const QBool *qb)
return qb->value;
}
/**
* qobject_to_qbool(): Convert a QObject into a QBool
*/
QBool *qobject_to_qbool(const QObject *obj)
{
if (!obj || qobject_type(obj) != QTYPE_QBOOL) {
return NULL;
}
return container_of(obj, QBool, base);
}
/**
* qbool_is_equal(): Test whether the two QBools are equal
*/