diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2013-08-07 21:22:06 +0200 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2013-08-07 21:22:31 +0200 |
commit | 19f52fef3cdb343036fbac8a03f7db51b4aa0a32 (patch) | |
tree | 2e3c92a990e398b0cb9ad5fe891986b159017196 | |
parent | 53b661c0eb5c24c3d89d052c0bd485b468e58a5d (diff) |
connection: remove tp_handle_get_qdata usage
This codepath is never actually used anyway because
tp_handle_set_qdata is never called.
-rw-r--r-- | src/kindling-connection.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/kindling-connection.c b/src/kindling-connection.c index bc18be1..4dbb5dd 100644 --- a/src/kindling-connection.c +++ b/src/kindling-connection.c @@ -137,23 +137,8 @@ static void _soup_authenticate_cb(SoupSession *session, } -static GQuark _canon_nick_quark() { - static GQuark quark = 0; - - if (!quark) { - quark = g_quark_from_static_string ("canon-nick"); - } - return quark; -} - static const gchar *gimme_an_alias (TpHandleRepoIface *repo, TpHandle handle) { - const char *alias = (const char *) tp_handle_get_qdata (repo, handle, _canon_nick_quark()); - - if (alias != NULL) { - return alias; - } else { - return tp_handle_inspect(repo, handle); - } + return tp_handle_inspect(repo, handle); } |