diff --git a/edit/ChangeLog b/edit/ChangeLog index 0546fe222..08fe77dc9 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -11,6 +11,10 @@ (edit_read_syntax_file): Use PATH_SEP_STR. (edit_load_syntax): Use syntax_g_free to release error_file_name. (edit_read_syntax_rules): Likewise. + Eliminate c->single_char. It's only written but never read. + + * edit.h (struct context_rule): Comment out single_char field. + It is written once but never read. 2001-12-22 Andrew V. Samoilov diff --git a/edit/edit.h b/edit/edit.h index dd970f0ef..54f7155ac 100644 --- a/edit/edit.h +++ b/edit/edit.h @@ -179,7 +179,9 @@ struct context_rule { unsigned char first_right; char line_start_left; char line_start_right; +#if 0 int single_char; +#endif int between_delimiters; char *whole_word_chars_left; char *whole_word_chars_right; diff --git a/edit/syntax.c b/edit/syntax.c index 410d7e894..d8c031027 100644 --- a/edit/syntax.c +++ b/edit/syntax.c @@ -691,7 +691,9 @@ static int edit_read_syntax_rules (WEdit * edit, FILE * f) c->right = (char *) strdup (*a++); c->first_left = *c->left; c->first_right = *c->right; +#if 0 c->single_char = (strlen (c->right) == 1); +#endif } c->keyword = syntax_malloc (MAX_WORDS_PER_CONTEXT * sizeof (struct key_word *)); #if 0