aboutsummaryrefslogtreecommitdiff
path: root/qobject/qbool.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2018-02-24 16:40:30 +0100
committerEric Blake <eblake@redhat.com>2018-03-19 14:58:36 -0500
commitcb51b976babf7ee16dc5eda4f2189d65b8b700a3 (patch)
treea0748ed1a0b185844477c33fc280847f2b2bf4b5 /qobject/qbool.c
parent7dc847ebba953db90853d15f140c20eef74d4fb2 (diff)
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>
Diffstat (limited to 'qobject/qbool.c')
-rw-r--r--qobject/qbool.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/qobject/qbool.c b/qobject/qbool.c
index 5be6277cca..b58249925c 100644
--- a/qobject/qbool.c
+++ b/qobject/qbool.c
@@ -40,17 +40,6 @@ bool qbool_get_bool(const QBool *qb)
}
/**
- * 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
*/
bool qbool_is_equal(const QObject *x, const QObject *y)