]> git.0d.be Git - empathy.git/blobdiff - src/empathy-chat-window.c
Remove useless include of empathy-contact-factory.h
[empathy.git] / src / empathy-chat-window.c
index 145d45e7fac5f98dcf97c9dfd37ae6a3f84f9784..a6ca638b88d1b91d47e23dc700da138358213902 100644 (file)
@@ -37,7 +37,6 @@
 #include <telepathy-glib/util.h>
 #include <libmissioncontrol/mission-control.h>
 
-#include <libempathy/empathy-contact-factory.h>
 #include <libempathy/empathy-contact.h>
 #include <libempathy/empathy-message.h>
 #include <libempathy/empathy-dispatcher.h>
@@ -953,7 +952,7 @@ chat_window_new_message_cb (EmpathyChat       *chat,
        if (has_focus && priv->current_chat == chat) {
                return;
        }
-       
+
        /* If empathy_chat_is_room() returns TRUE, that means it's a named MUC.
         * If empathy_chat_get_remote_contact() returns NULL, that means it's
         * an unamed MUC (msn-like).
@@ -1700,17 +1699,3 @@ empathy_chat_window_present_chat (EmpathyChat *chat)
        gtk_widget_grab_focus (chat->input_text_view); 
 }
 
-#if 0
-static gboolean
-chat_window_should_play_sound (EmpathyChatWindow *window)
-{
-       EmpathyChatWindowPriv *priv = GET_PRIV (window);
-       gboolean               has_focus = FALSE;
-
-       g_return_val_if_fail (EMPATHY_IS_CHAT_WINDOW (window), FALSE);
-
-       g_object_get (priv->dialog, "has-toplevel-focus", &has_focus, NULL);
-
-       return !has_focus;
-}
-#endif