about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-02 21:14:55 +0000
committerJames Booth <boothj5@gmail.com>2015-11-02 21:14:55 +0000
commit84adec83f970eeb0ff912ee016c69e48f2061550 (patch)
tree36ca599916b35d4cfad0c55f01ccda39dfebe295 /src
parent7f5b563a8164360034949e302c7715cddd4490c1 (diff)
downloadprofani-tty-84adec83f970eeb0ff912ee016c69e48f2061550.tar.gz
Removed ui_unread
Diffstat (limited to 'src')
-rw-r--r--src/ui/core.c8
-rw-r--r--src/ui/notifier.c2
-rw-r--r--src/ui/ui.h1
3 files changed, 2 insertions, 9 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 37bc5b15..5221f592 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -972,12 +972,6 @@ ui_room_banned(const char *const roomjid, const char *const actor, const char *c
     }
 }
 
-gint
-ui_unread(void)
-{
-    return wins_get_total_unread();
-}
-
 int
 ui_win_unread(int index)
 {
@@ -1107,7 +1101,7 @@ _ui_draw_term_title(void)
 
     if (status == JABBER_CONNECTED) {
         const char * const jid = jabber_get_fulljid();
-        gint unread = ui_unread();
+        gint unread = wins_get_total_unread();
 
         if (unread != 0) {
             snprintf(new_win_title, sizeof(new_win_title),
diff --git a/src/ui/notifier.c b/src/ui/notifier.c
index 3c24324f..9127b1e7 100644
--- a/src/ui/notifier.c
+++ b/src/ui/notifier.c
@@ -149,7 +149,7 @@ notify_remind(void)
     gdouble elapsed = g_timer_elapsed(remind_timer, NULL);
     gint remind_period = prefs_get_notify_remind();
     if (remind_period > 0 && elapsed >= remind_period) {
-        gint unread = ui_unread();
+        gint unread = wins_get_total_unread();
         gint open = muc_invites_count();
         gint subs = presence_sub_request_count();
 
diff --git a/src/ui/ui.h b/src/ui/ui.h
index eecafe97..d3f5b91b 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -70,7 +70,6 @@ unsigned long ui_get_idle_time(void);
 void ui_reset_idle_time(void);
 ProfPrivateWin* ui_new_private_win(const char *const fulljid);
 void ui_print_system_msg_from_recipient(const char *const barejid, const char *message);
-gint ui_unread(void);
 void ui_close_connected_win(int index);
 int ui_close_all_wins(void);
 int ui_close_read_wins(void);