]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qobject/qstring.c
qobject: Drop qobject_get_try_str()
[mirror_qemu.git] / qobject / qstring.c
index d6724bd4e5a21723a1a0e070b6d125f80c03ee96..cfe3f3bf00c66f6a0d59ad16a4e9da6cf812ec8b 100644 (file)
@@ -149,17 +149,6 @@ const char *qstring_get_try_str(const QString *qstring)
     return qstring ? qstring_get_str(qstring) : NULL;
 }
 
-/**
- * qobject_get_try_str(): Return a pointer to the corresponding string
- *
- * NOTE: the string will only be returned if the object is valid, and
- * its type is QString, otherwise NULL is returned.
- */
-const char *qobject_get_try_str(const QObject *qstring)
-{
-    return qstring_get_try_str(qobject_to(QString, qstring));
-}
-
 /**
  * qstring_is_equal(): Test whether the two QStrings are equal
  */