about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-08-26 17:29:20 +0100
committerJames Booth <boothj5@gmail.com>2013-08-26 17:29:20 +0100
commit48feac3e779b97b14abe260415805c5df21947af (patch)
tree1482d3b11aff8d450f8991fd2a891604b4820ae4 /src/ui
parentd1b3340ea523f54270b20d92fad6e4bcb9fdce21 (diff)
downloadprofani-tty-48feac3e779b97b14abe260415805c5df21947af.tar.gz
Removed cons_create from console.c
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c9
-rw-r--r--src/ui/ui.h1
-rw-r--r--src/ui/window.c2
-rw-r--r--src/ui/windows.c3
4 files changed, 2 insertions, 13 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index b7c833e0..107e190d 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -40,18 +40,9 @@
 #include "xmpp/xmpp.h"
 #include "xmpp/bookmark.h"
 
-#define CONS_WIN_TITLE "_cons"
-
 static void _cons_splash_logo(void);
 void _show_roster_contacts(GSList *list, gboolean show_groups);
 
-ProfWin *
-cons_create(void)
-{
-    int cols = getmaxx(stdscr);
-    return win_create(CONS_WIN_TITLE, cols, WIN_CONSOLE);
-}
-
 void
 cons_show_time(void)
 {
diff --git a/src/ui/ui.h b/src/ui/ui.h
index 54adbc13..eec4aac5 100644
--- a/src/ui/ui.h
+++ b/src/ui/ui.h
@@ -144,7 +144,6 @@ void title_bar_set_typing(gboolean is_typing);
 void title_bar_draw(void);
 
 // console window actions
-ProfWin* cons_create(void);
 void cons_show(const char * const msg, ...);
 void cons_about(void);
 void cons_help(void);
diff --git a/src/ui/window.c b/src/ui/window.c
index e2e03340..b78a240f 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -35,8 +35,6 @@
 #include "config/theme.h"
 #include "ui/window.h"
 
-#define CONS_WIN_TITLE "_cons"
-
 ProfWin*
 win_create(const char * const title, int cols, win_type_t type)
 {
diff --git a/src/ui/windows.c b/src/ui/windows.c
index fe94b482..3f5d2d6b 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -38,6 +38,7 @@
 #include "ui/windows.h"
 
 #define NUM_WINS 10
+#define CONS_WIN_TITLE "_cons"
 
 static ProfWin* windows[NUM_WINS];
 static int current;
@@ -65,7 +66,7 @@ wins_init(void)
 
     max_cols = getmaxx(stdscr);
     int cols = getmaxx(stdscr);
-    windows[0] = win_create("_cons", cols, WIN_CONSOLE);
+    windows[0] = win_create(CONS_WIN_TITLE, cols, WIN_CONSOLE);
     current = 0;
 }