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

@ -105,17 +105,6 @@ void qstring_append_chr(QString *qstring, int c)
qstring->string[qstring->length] = 0;
}
/**
* 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
*