aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2011-03-17 02:51:15 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-17 19:54:34 +0800
commit88e09c99733982de201c3c1cfbf4742a0e8662b1 (patch)
treede0f99c45903453a776091f69be212125c4f6688 /libempathy-gtk/empathy-chat.c
parent95a0ab7d884a6500cfba6ff63fea73269faec0da (diff)
downloadgsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.tar
gsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.tar.gz
gsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.tar.bz2
gsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.tar.lz
gsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.tar.xz
gsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.tar.zst
gsoc2013-empathy-88e09c99733982de201c3c1cfbf4742a0e8662b1.zip
Fix warnings from GCC 4.6 about variables that are set but not used.
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 6bcaa84bc..867200b0c 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -277,13 +277,10 @@ chat_new_connection_cb (TpAccount *account,
EmpathyChat *chat)
{
EmpathyChatPriv *priv = GET_PRIV (chat);
- TpConnection *connection;
if (new_status != TP_CONNECTION_STATUS_CONNECTED)
return;
- connection = tp_account_get_connection (account);
-
if (priv->tp_chat != NULL || account != priv->account ||
priv->handle_type == TP_HANDLE_TYPE_NONE ||
EMP_STR_EMPTY (priv->id))
@@ -961,11 +958,8 @@ static void
chat_command_help (EmpathyChat *chat,
GStrv strv)
{
- EmpathyChatPriv *priv;
guint i;
- priv = GET_PRIV (chat);
-
/* If <command> part is not defined,
* strv[1] will be the terminal NULL */
if (strv[1] == NULL) {
@@ -1134,13 +1128,10 @@ chat_send (EmpathyChat *chat,
static void
chat_input_text_view_send (EmpathyChat *chat)
{
- EmpathyChatPriv *priv;
GtkTextBuffer *buffer;
GtkTextIter start, end;
gchar *msg;
- priv = GET_PRIV (chat);
-
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view));
gtk_text_buffer_get_bounds (buffer, &start, &end);
@@ -1995,7 +1986,6 @@ chat_input_populate_popup_cb (GtkTextView *view,
GtkMenu *menu,
EmpathyChat *chat)
{
- EmpathyChatPriv *priv;
GtkTextBuffer *buffer;
GtkTextTagTable *table;
GtkTextTag *tag;
@@ -2010,7 +2000,6 @@ chat_input_populate_popup_cb (GtkTextView *view,
GtkWidget *smiley_menu;
GtkWidget *image;
- priv = GET_PRIV (chat);
buffer = gtk_text_view_get_buffer (view);
/* Add the emoticon menu. */