about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 17ff30e2..44860a3f 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -305,50 +305,6 @@ ui_contact_typing(const char *const barejid, const char *const resource)
 }
 
 void
-ui_incoming_private_msg(const char *const fulljid, const char *const message, GDateTime *timestamp)
-{
-    char *display_from = NULL;
-    display_from = get_nick_from_full_jid(fulljid);
-
-    ProfPrivateWin *privatewin = wins_get_private(fulljid);
-    if (privatewin == NULL) {
-        ProfWin *window = wins_new_private(fulljid);
-        privatewin = (ProfPrivateWin*)window;
-    }
-
-    ProfWin *window = (ProfWin*) privatewin;
-    int num = wins_get_num(window);
-
-    // currently viewing chat window with sender
-    if (wins_is_current(window)) {
-        win_print_incoming_message(window, timestamp, display_from, message, PROF_MSG_PLAIN);
-        title_bar_set_typing(FALSE);
-        status_bar_active(num);
-
-    // not currently viewing chat window with sender
-    } else {
-        privatewin->unread++;
-        status_bar_new(num);
-        cons_show_incoming_message(display_from, num);
-        win_print_incoming_message(window, timestamp, display_from, message, PROF_MSG_PLAIN);
-
-        if (prefs_get_boolean(PREF_FLASH)) {
-            flash();
-        }
-    }
-
-    if (prefs_get_boolean(PREF_BEEP)) {
-        beep();
-    }
-
-    if (prefs_get_boolean(PREF_NOTIFY_MESSAGE)) {
-        notify_message(window, display_from, message);
-    }
-
-    free(display_from);
-}
-
-void
 ui_roster_add(const char *const barejid, const char *const name)
 {
     if (name) {