diff options
author | James Booth <boothj5@gmail.com> | 2015-11-05 23:28:21 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-05 23:28:21 +0000 |
commit | 9fcdc5901cf27526cdb492cd7a4fbfe2133aeefe (patch) | |
tree | a292204701028c5562a226cf76e84803482647a9 /src | |
parent | f1daec663d38b683bf4af70eedec0da1e24a60f1 (diff) | |
download | profani-tty-9fcdc5901cf27526cdb492cd7a4fbfe2133aeefe.tar.gz |
Removed ui_new_private_win
Diffstat (limited to 'src')
-rw-r--r-- | src/command/commands.c | 2 | ||||
-rw-r--r-- | src/ui/core.c | 7 | ||||
-rw-r--r-- | src/ui/ui.h | 1 |
3 files changed, 1 insertions, 9 deletions
diff --git a/src/command/commands.c b/src/command/commands.c index c87e3eaa..0331d691 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -1497,7 +1497,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args) ProfPrivateWin *privwin = wins_get_private(full_jid->str); if (!privwin) { - privwin = ui_new_private_win(full_jid->str); + privwin = (ProfPrivateWin*)wins_new_private(full_jid->str); } ui_focus_win((ProfWin*)privwin); diff --git a/src/ui/core.c b/src/ui/core.c index 44860a3f..ae228f63 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -769,13 +769,6 @@ ui_print_system_msg_from_recipient(const char *const barejid, const char *messag win_vprint(window, '-', 0, NULL, 0, 0, "", "*%s %s", barejid, message); } -ProfPrivateWin* -ui_new_private_win(const char *const fulljid) -{ - ProfWin *window = wins_new_private(fulljid); - return (ProfPrivateWin*)window; -} - void ui_outgoing_private_msg(ProfPrivateWin *privwin, const char *const message) { diff --git a/src/ui/ui.h b/src/ui/ui.h index c3d65978..751e65ca 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -68,7 +68,6 @@ void ui_sigwinch_handler(int sig); void ui_handle_otr_error(const char *const barejid, const char *const message); 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); void ui_close_connected_win(int index); int ui_close_all_wins(void); |