summaryrefslogtreecommitdiffstats
path: root/qobject/qstring.c
diff options
context:
space:
mode:
authorMax Reitz2018-02-24 16:40:30 +0100
committerEric Blake2018-03-19 20:58:36 +0100
commitcb51b976babf7ee16dc5eda4f2189d65b8b700a3 (patch)
treea0748ed1a0b185844477c33fc280847f2b2bf4b5 /qobject/qstring.c
parentqapi: Replace qobject_to_X(o) by qobject_to(X, o) (diff)
downloadqemu-cb51b976babf7ee16dc5eda4f2189d65b8b700a3.tar.gz
qemu-cb51b976babf7ee16dc5eda4f2189d65b8b700a3.tar.xz
qemu-cb51b976babf7ee16dc5eda4f2189d65b8b700a3.zip
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/qstring.c')
-rw-r--r--qobject/qstring.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/qobject/qstring.c b/qobject/qstring.c
index 2b2153206d..8bae529ef7 100644
--- a/qobject/qstring.c
+++ b/qobject/qstring.c
@@ -106,17 +106,6 @@ void qstring_append_chr(QString *qstring, int c)
}
/**
- * qobject_to_qstring(): Convert a QObject to a QString
- */
-QString *qobject_to_qstring(const QObject *obj)
-{
- if (!obj || qobject_type(obj) != QTYPE_QSTRING) {
- return NULL;
- }
- return container_of(obj, QString, base);
-}
-
-/**
* qstring_get_str(): Return a pointer to the stored string
*
* NOTE: Should be used with caution, if the object is deallocated