aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-call-utils.c26
-rw-r--r--libempathy-gtk/empathy-new-call-dialog.c7
2 files changed, 2 insertions, 31 deletions
diff --git a/libempathy-gtk/empathy-call-utils.c b/libempathy-gtk/empathy-call-utils.c
index 3883dad16..9800a7403 100644
--- a/libempathy-gtk/empathy-call-utils.c
+++ b/libempathy-gtk/empathy-call-utils.c
@@ -26,9 +26,7 @@
#include <telepathy-glib/telepathy-glib.h>
-#if HAVE_CALL
- #include <telepathy-yell/telepathy-yell.h>
-#endif
+#include <telepathy-yell/telepathy-yell.h>
#include "empathy-call-utils.h"
@@ -51,7 +49,6 @@ show_call_error (GError *error)
gtk_widget_show (dialog);
}
-#if HAVE_CALL
GHashTable *
empathy_call_create_call_request (const gchar *contact,
gboolean initial_audio,
@@ -70,7 +67,6 @@ empathy_call_create_call_request (const gchar *contact,
initial_video,
NULL);
}
-#endif
GHashTable *
empathy_call_create_streamed_media_request (const gchar *contact,
@@ -109,7 +105,6 @@ create_streamed_media_channel_cb (GObject *source,
}
}
-#if HAVE_CALL
static void
create_call_channel_cb (GObject *source,
GAsyncResult *result,
@@ -139,7 +134,6 @@ create_call_channel_cb (GObject *source,
create_streamed_media_channel_cb,
NULL);
}
-#endif
void
empathy_call_new_with_streams (const gchar *contact,
@@ -148,7 +142,6 @@ empathy_call_new_with_streams (const gchar *contact,
gboolean initial_video,
gint64 timestamp)
{
-#if HAVE_CALL
GHashTable *call_request, *streamed_media_request;
TpAccountChannelRequest *call_req, *streamed_media_req;
@@ -171,21 +164,4 @@ empathy_call_new_with_streams (const gchar *contact,
g_hash_table_unref (call_request);
g_hash_table_unref (streamed_media_request);
g_object_unref (call_req);
-#else
- GHashTable *request;
- TpAccountChannelRequest *req;
-
- request = empathy_call_create_streamed_media_request (contact,
- initial_audio,
- initial_video);
-
- req = tp_account_channel_request_new (account, request, timestamp);
-
- tp_account_channel_request_create_channel_async (req, NULL, NULL,
- create_streamed_media_channel_cb,
- NULL);
-
- g_hash_table_unref (request);
- g_object_unref (req);
-#endif
}
diff --git a/libempathy-gtk/empathy-new-call-dialog.c b/libempathy-gtk/empathy-new-call-dialog.c
index be266c715..0c609eefc 100644
--- a/libempathy-gtk/empathy-new-call-dialog.c
+++ b/libempathy-gtk/empathy-new-call-dialog.c
@@ -28,9 +28,7 @@
#include <telepathy-glib/interfaces.h>
-#if HAVE_CALL
#include <telepathy-yell/telepathy-yell.h>
-#endif
#include <libempathy/empathy-tp-contact-factory.h>
#include <libempathy/empathy-contact-manager.h>
@@ -131,10 +129,7 @@ conn_prepared_cb (GObject *conn,
chan_type = tp_asv_get_string (fixed, TP_PROP_CHANNEL_CHANNEL_TYPE);
if (tp_strdiff (chan_type, TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA)
-#if HAVE_CALL
- && tp_strdiff (chan_type, TPY_IFACE_CHANNEL_TYPE_CALL)
-#endif
- )
+ && tp_strdiff (chan_type, TPY_IFACE_CHANNEL_TYPE_CALL))
continue;
if (tp_asv_get_uint32 (fixed, TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, NULL) !=