1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Removed ui_new_private_win

This commit is contained in:
James Booth 2015-11-05 23:28:21 +00:00
parent f1daec663d
commit 9fcdc5901c
4 changed files with 1 additions and 13 deletions

View File

@ -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);

View File

@ -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)
{

View File

@ -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);

View File

@ -83,10 +83,6 @@ unsigned long ui_get_idle_time(void)
}
void ui_reset_idle_time(void) {}
ProfPrivateWin* ui_new_private_win(const char * const fulljid)
{
return NULL;
}
ProfChatWin* chatwin_new(const char * const barejid)
{