Browse Source

tinyrl: Remove unneded members of tinyrl structure

Serj Kalichev 1 year ago
parent
commit
db6098a9c8
2 changed files with 0 additions and 25 deletions
  1. 0 15
      tinyrl/tinyrl/private.h
  2. 0 10
      tinyrl/tinyrl/tinyrl.c

+ 0 - 15
tinyrl/tinyrl/private.h

@@ -48,7 +48,6 @@ typedef struct line_s {
 #define NUM_HANDLERS 256
 
 struct tinyrl_s {
-
 	tinyrl_key_func_t *handlers[NUM_HANDLERS]; // Handlers for pressed keys
 	tinyrl_key_func_t *hotkey_fn; // Handler for non-standard hotkeys
 	hist_t *hist; // History object
@@ -70,18 +69,4 @@ struct tinyrl_s {
 	bool_t esc_cont; // Does escape sequence continue
 	char esc_seq[10]; // Current ESC sequence (line doesn't contain it)
 	char *esc_p; // Pointer for unfinished ESC sequence
-
-
-	unsigned max_line_length;
-	char *buffer;
-	size_t buffer_size;
-	bool_t done;
-	bool_t completion_over;
-	bool_t completion_error_over;
-	tinyrl_completion_func_t *attempted_completion_function;
-	int state;
-#define RL_STATE_COMPLETING (0x00000001)
-	char *kill_string;
-	char echo_char;
-	bool_t echo_enabled;
 };

+ 0 - 10
tinyrl/tinyrl/tinyrl.c

@@ -63,17 +63,7 @@ tinyrl_t *tinyrl_new(FILE *istream, FILE *ostream,
 	tinyrl->handlers[KEY_HT] = tinyrl_key_tab;
 	tinyrl->handlers[KEY_ETB] = tinyrl_key_backword;
 
-	tinyrl->max_line_length = 0;
-	tinyrl->buffer = NULL;
-	tinyrl->buffer_size = 0;
-	tinyrl->done = BOOL_FALSE;
-	tinyrl->completion_over = BOOL_FALSE;
-	tinyrl->attempted_completion_function = NULL;
 	tinyrl->hotkey_fn = NULL;
-	tinyrl->state = 0;
-	tinyrl->kill_string = NULL;
-	tinyrl->echo_char = '\0';
-	tinyrl->echo_enabled = BOOL_TRUE;
 	tinyrl->utf8 = BOOL_TRUE;
 	tinyrl->busy = BOOL_FALSE;