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

Removed cons_create from console.c

This commit is contained in:
James Booth 2013-08-26 17:29:20 +01:00
parent d1b3340ea5
commit 48feac3e77
4 changed files with 2 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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