aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-01 18:16:36 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-06 23:56:24 +0800
commitab5053cba9d2cea3610916eff7aa88b4f219a22c (patch)
treebb68a6ee8c7e1de0c43a54a909e4634ed399e406 /libempathy
parenta75c2aa330535747d736c53cf69f0601fbf0f7b3 (diff)
downloadgsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.tar
gsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.tar.gz
gsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.tar.bz2
gsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.tar.lz
gsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.tar.xz
gsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.tar.zst
gsoc2013-empathy-ab5053cba9d2cea3610916eff7aa88b4f219a22c.zip
remove empathy_tp_contact_factory_set_avatar
This is not needed any more.
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-factory.c61
-rw-r--r--libempathy/empathy-tp-contact-factory.h4
2 files changed, 0 insertions, 65 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index 4d5a7295e..7139ae7a4 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -146,29 +146,6 @@ tp_contact_factory_set_location_cb (TpConnection *tp_conn,
}
static void
-tp_contact_factory_set_avatar_cb (TpConnection *connection,
- const gchar *token,
- const GError *error,
- gpointer user_data,
- GObject *tp_factory)
-{
- if (error) {
- DEBUG ("Error: %s", error->message);
- }
-}
-
-static void
-tp_contact_factory_clear_avatar_cb (TpConnection *connection,
- const GError *error,
- gpointer user_data,
- GObject *tp_factory)
-{
- if (error) {
- DEBUG ("Error: %s", error->message);
- }
-}
-
-static void
tp_contact_factory_avatar_retrieved_cb (TpConnection *connection,
guint handle,
const gchar *token,
@@ -1278,44 +1255,6 @@ empathy_tp_contact_factory_set_alias (EmpathyTpContactFactory *tp_factory,
}
void
-empathy_tp_contact_factory_set_avatar (EmpathyTpContactFactory *tp_factory,
- const gchar *data,
- gsize size,
- const gchar *mime_type)
-{
- EmpathyTpContactFactoryPriv *priv = GET_PRIV (tp_factory);
-
- g_return_if_fail (EMPATHY_IS_TP_CONTACT_FACTORY (tp_factory));
-
- if (data && size > 0 && size < G_MAXUINT) {
- GArray avatar;
-
- avatar.data = (gchar *) data;
- avatar.len = size;
-
- DEBUG ("Setting avatar on connection %s",
- tp_proxy_get_object_path (TP_PROXY (priv->connection)));
-
- tp_cli_connection_interface_avatars_call_set_avatar (priv->connection,
- -1,
- &avatar,
- mime_type,
- tp_contact_factory_set_avatar_cb,
- NULL, NULL,
- G_OBJECT (tp_factory));
- } else {
- DEBUG ("Clearing avatar on connection %s",
- tp_proxy_get_object_path (TP_PROXY (priv->connection)));
-
- tp_cli_connection_interface_avatars_call_clear_avatar (priv->connection,
- -1,
- tp_contact_factory_clear_avatar_cb,
- NULL, NULL,
- G_OBJECT (tp_factory));
- }
-}
-
-void
empathy_tp_contact_factory_set_location (EmpathyTpContactFactory *tp_factory,
GHashTable *location)
{
diff --git a/libempathy/empathy-tp-contact-factory.h b/libempathy/empathy-tp-contact-factory.h
index ed11bf7e4..4cce6ec6a 100644
--- a/libempathy/empathy-tp-contact-factory.h
+++ b/libempathy/empathy-tp-contact-factory.h
@@ -104,10 +104,6 @@ void empathy_tp_contact_factory_get_from_handle (EmpathyTpC
void empathy_tp_contact_factory_set_alias (EmpathyTpContactFactory *tp_factory,
EmpathyContact *contact,
const gchar *alias);
-void empathy_tp_contact_factory_set_avatar (EmpathyTpContactFactory *tp_factory,
- const gchar *data,
- gsize size,
- const gchar *mime_type);
void empathy_tp_contact_factory_set_location (EmpathyTpContactFactory *tp_factory,
GHashTable *location);
G_END_DECLS