From 4c42ce9701fa4df960a8b20d704ac611e4866dfa Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 1 Nov 2015 18:38:21 +0000 Subject: Removed ui_readline() --- src/profanity.c | 2 +- src/ui/core.c | 6 ------ src/ui/inputwin.h | 1 - src/ui/ui.h | 3 ++- 4 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/profanity.c b/src/profanity.c index d316ba2f..07dcc332 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -108,7 +108,7 @@ prof_run(char *log_level, char *account_name) log_stderr_handler(); _check_autoaway(); - line = ui_readline(); + line = inp_readline(); if (line) { ProfWin *window = wins_get_current(); cont = cmd_process_input(window, line); diff --git a/src/ui/core.c b/src/ui/core.c index a48d987b..af395831 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -185,12 +185,6 @@ ui_close(void) endwin(); } -char* -ui_readline(void) -{ - return inp_readline(); -} - void ui_page_up(void) { diff --git a/src/ui/inputwin.h b/src/ui/inputwin.h index 25faba38..7a45afde 100644 --- a/src/ui/inputwin.h +++ b/src/ui/inputwin.h @@ -40,7 +40,6 @@ #define INP_WIN_MAX 1000 void create_input_window(void); -char* inp_readline(void); void inp_nonblocking(gboolean reset); void inp_close(void); void inp_win_clear(void); diff --git a/src/ui/ui.h b/src/ui/ui.h index 70c02da0..388f37ed 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -85,6 +85,8 @@ void chatwin_outgoing_carbon(ProfChatWin *chatwin, const char *const message); void chatwin_contact_online(ProfChatWin *chatwin, Resource *resource, GDateTime *last_activity); void chatwin_contact_offline(ProfChatWin *chatwin, char *resource, char *status); +char* inp_readline(void); + void ui_handle_otr_error(const char *const barejid, const char *const message); unsigned long ui_get_idle_time(void); @@ -228,7 +230,6 @@ void ui_update_presence(const resource_presence_t resource_presence, const char *const message, const char *const show); void ui_statusbar_new(const int win); -char* ui_readline(void); void ui_input_clear(void); void ui_input_nonblocking(gboolean); void ui_write(char *line, int offset); -- cgit 1.4.1-2-gfad0