about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-05 23:28:21 +0000
committerJames Booth <boothj5@gmail.com>2015-11-05 23:28:21 +0000
commit9fcdc5901cf27526cdb492cd7a4fbfe2133aeefe (patch)
treea292204701028c5562a226cf76e84803482647a9
parentf1daec663d38b683bf4af70eedec0da1e24a60f1 (diff)
downloadprofani-tty-9fcdc5901cf27526cdb492cd7a4fbfe2133aeefe.tar.gz
Removed ui_new_private_win
-rw-r--r--src/command/commands.c2
-rw-r--r--src/ui/core.c7
-rw-r--r--src/ui/ui.h1
-rw-r--r--tests/unittests/ui/stub_ui.c4
4 files changed, 1 insertions, 13 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);
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index 2d979af0..23520009 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -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)
 {