diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-05-16 23:37:21 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-09 17:20:08 +0800 |
commit | 62475a9a10093fc2ef93fcb5958c3f9dd29f28a3 (patch) | |
tree | 8617fee49dcc8fcc2aecdb4b4b1355260bfc5b38 | |
parent | 38e097caec45ba6faaf33b7077ac8795a5ff6b86 (diff) | |
download | gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.tar gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.tar.gz gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.tar.bz2 gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.tar.lz gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.tar.xz gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.tar.zst gsoc2013-empathy-62475a9a10093fc2ef93fcb5958c3f9dd29f28a3.zip |
Remove empathy_call_factory_new_call_with_streams
It's unused and empathy_call_new_with_streams is better.
-rw-r--r-- | src/empathy-call-factory.c | 52 | ||||
-rw-r--r-- | src/empathy-call-factory.h | 6 |
2 files changed, 0 insertions, 58 deletions
diff --git a/src/empathy-call-factory.c b/src/empathy-call-factory.c index 191dcab7f..46ef01aa5 100644 --- a/src/empathy-call-factory.c +++ b/src/empathy-call-factory.c @@ -34,8 +34,6 @@ #include <libempathy/empathy-tp-contact-factory.h> #include <libempathy/empathy-utils.h> -#include <libempathy-gtk/empathy-call-utils.h> - #include "empathy-call-factory.h" #include "empathy-call-handler.h" #include "src-marshal.h" @@ -210,56 +208,6 @@ empathy_call_factory_get (void) } static void -create_call_channel_cb (GObject *source, - GAsyncResult *result, - gpointer user_data) -{ - GError *error = NULL; - - if (!tp_account_channel_request_create_channel_finish ( - TP_ACCOUNT_CHANNEL_REQUEST (source), result, &error)) - { - DEBUG ("Failed to create call channel: %s", error->message); - g_error_free (error); - } -} - -/** - * empathy_call_factory_new_call_with_streams: - * @factory: an #EmpathyCallFactory - * @contact: an #EmpathyContact - * @initial_audio: if %TRUE the call will be started with audio - * @initial_video: if %TRUE the call will be started with video - * - * Initiate a new Call with @contact. - */ -void -empathy_call_factory_new_call_with_streams (EmpathyContact *contact, - gboolean initial_audio, - gboolean initial_video, - gint64 timestamp, - gpointer user_data) -{ - GHashTable *call_request; - TpAccount *account; - TpAccountChannelRequest *call_req; - - call_request = empathy_call_create_call_request ( - empathy_contact_get_id (contact), - initial_audio, initial_video); - - account = empathy_contact_get_account (contact); - - call_req = tp_account_channel_request_new (account, call_request, timestamp); - - tp_account_channel_request_create_channel_async (call_req, NULL, NULL, - create_call_channel_cb, NULL); - - g_hash_table_unref (call_request); - g_object_unref (call_req); -} - -static void call_channel_got_contact (TpConnection *connection, EmpathyContact *contact, const GError *error, diff --git a/src/empathy-call-factory.h b/src/empathy-call-factory.h index 121e93b64..0e5276278 100644 --- a/src/empathy-call-factory.h +++ b/src/empathy-call-factory.h @@ -61,12 +61,6 @@ EmpathyCallFactory *empathy_call_factory_initialise (void); EmpathyCallFactory *empathy_call_factory_get (void); -void empathy_call_factory_new_call_with_streams (EmpathyContact *contact, - gboolean initial_audio, - gboolean initial_video, - gint64 timestamp, - gpointer user_data); - gboolean empathy_call_factory_register (EmpathyCallFactory *self, GError **error); |