diff options
-rw-r--r-- | src/profanity.c | 2 | ||||
-rw-r--r-- | src/ui/core.c | 12 | ||||
-rw-r--r-- | src/ui/ui.h | 1 | ||||
-rw-r--r-- | tests/unittests/ui/stub_ui.c | 4 |
4 files changed, 2 insertions, 17 deletions
diff --git a/src/profanity.c b/src/profanity.c index 28eb4bf4..e4db293d 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -132,7 +132,7 @@ prof_handle_idle(void) { jabber_conn_status_t status = jabber_get_connection_status(); if (status == JABBER_CONNECTED) { - GSList *recipients = ui_get_chat_recipients(); + GSList *recipients = wins_get_chat_recipients(); GSList *curr = recipients; while (curr) { diff --git a/src/ui/core.c b/src/ui/core.c index 75fa61fb..0f451d61 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -76,17 +76,14 @@ #include "xmpp/xmpp.h" static char *win_title; - static int inp_size; - static gboolean perform_resize = FALSE; +static GTimer *ui_idle_time; #ifdef HAVE_LIBXSS static Display *display; #endif -static GTimer *ui_idle_time; - static void _ui_draw_term_title(void); void @@ -307,13 +304,6 @@ ui_contact_typing(const char *const barejid, const char *const resource) } } -GSList* -ui_get_chat_recipients(void) -{ - GSList *recipients = wins_get_chat_recipients(); - return recipients; -} - void ui_incoming_private_msg(const char *const fulljid, const char *const message, GDateTime *timestamp) { diff --git a/src/ui/ui.h b/src/ui/ui.h index b3753dbb..171e0dc6 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -63,7 +63,6 @@ void ui_update(void); void ui_close(void); void ui_redraw(void); void ui_resize(void); -GSList* ui_get_chat_recipients(void); void ui_switch_win(ProfWin *window); void ui_sigwinch_handler(int sig); void ui_handle_otr_error(const char *const barejid, const char *const message); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index b98f630a..3a2336c7 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -64,10 +64,6 @@ void ui_update(void) {} void ui_close(void) {} void ui_redraw(void) {} void ui_resize(void) {} -GSList* ui_get_chat_recipients(void) -{ - return NULL; -} void ui_switch_win(ProfWin *win) {} |