about summary refs log tree commit diff stats
path: root/src/ui/inputwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-30 23:46:34 +0000
committerJames Booth <boothj5@gmail.com>2015-01-30 23:46:34 +0000
commit1cf5592b1fd59b4a9277a5c969403f717d50a7cc (patch)
treeb03541507dca68cca815abf04956a679a84e151f /src/ui/inputwin.c
parent784a2ea862fb824a6f76191591590689fc704ac8 (diff)
downloadprofani-tty-1cf5592b1fd59b4a9277a5c969403f717d50a7cc.tar.gz
Removed unused variables
Diffstat (limited to 'src/ui/inputwin.c')
-rw-r--r--src/ui/inputwin.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index 501ae95f..55bf8912 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -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();
 }