diff options
author | Markus Armbruster | 2020-12-11 18:11:45 +0100 |
---|---|---|
committer | Markus Armbruster | 2020-12-19 10:39:16 +0100 |
commit | b3119b08143a036e8089fb442f9d42c4920ba22c (patch) | |
tree | 4896d46e1c0689abcfcfacf717bb4f0bbc42bb16 /qobject | |
parent | qobject: Drop qobject_get_try_str() (diff) | |
download | qemu-b3119b08143a036e8089fb442f9d42c4920ba22c.tar.gz qemu-b3119b08143a036e8089fb442f9d42c4920ba22c.tar.xz qemu-b3119b08143a036e8089fb442f9d42c4920ba22c.zip |
qobject: Drop qstring_get_try_str()
No users left outside tests/, and the ones in tests/ can just as well
use qstring_get_str(). Do that, and drop the function.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201211171152.146877-14-armbru@redhat.com>
Diffstat (limited to 'qobject')
-rw-r--r-- | qobject/qstring.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/qobject/qstring.c b/qobject/qstring.c index cfe3f3bf00..ea86d80cf0 100644 --- a/qobject/qstring.c +++ b/qobject/qstring.c @@ -140,16 +140,6 @@ const char *qstring_get_str(const QString *qstring) } /** - * qstring_get_try_str(): Return a pointer to the stored string - * - * NOTE: will return NULL if qstring is not provided. - */ -const char *qstring_get_try_str(const QString *qstring) -{ - return qstring ? qstring_get_str(qstring) : NULL; -} - -/** * qstring_is_equal(): Test whether the two QStrings are equal */ bool qstring_is_equal(const QObject *x, const QObject *y) |