1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Removed unused variables

This commit is contained in:
James Booth 2015-01-30 23:46:34 +00:00
parent 784a2ea862
commit 1cf5592b1f

View File

@ -63,18 +63,6 @@
#include "ui/windows.h"
#include "xmpp/xmpp.h"
#define KEY_CTRL_A 0001
#define KEY_CTRL_B 0002
#define KEY_CTRL_D 0004
#define KEY_CTRL_E 0005
#define KEY_CTRL_F 0006
#define KEY_CTRL_N 0016
#define KEY_CTRL_P 0020
#define KEY_CTRL_U 0025
#define KEY_CTRL_W 0027
#define MAX_HISTORY 100
static WINDOW *inp_win;
static struct timeval p_rl_timeout;
@ -82,11 +70,6 @@ static fd_set fds;
static int r;
static gboolean cmd_result = TRUE;
// input line
static char line[INP_WIN_MAX];
// current position in the utf8 string
static int line_utf8_pos;
static int pad_start = 0;
static void _inp_win_update_virtual(void);
@ -119,8 +102,6 @@ create_input_window(void)
keypad(inp_win, TRUE);
wmove(inp_win, 0, 0);
_inp_win_update_virtual();
line_utf8_pos = 0;
line[0] = '\0';
}
void
@ -217,8 +198,6 @@ inp_get_password(char *passwd)
werase(inp_win);
wmove(inp_win, 0, 0);
pad_start = 0;
line[0] = '\0';
line_utf8_pos = 0;
_inp_win_update_virtual();
doupdate();
noecho();
@ -240,8 +219,6 @@ inp_win_clear(void)
werase(inp_win);
wmove(inp_win, 0, 0);
pad_start = 0;
line[0] = '\0';
line_utf8_pos = 0;
_inp_win_update_virtual();
}