* edit-widget.h: Eliminate unused explicit_syntax field.

This commit is contained in:
Pavel Roskin 2003-07-08 23:58:36 +00:00
parent 729a855b29
commit 59593d0e1b
3 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2003-07-08 Pavel Roskin <proski@gnu.org>
* edit-widget.h: Eliminate unused explicit_syntax field.
* edit-widget.h: Stop misusing "unsigned char" for boolean.
Eliminate have_frame - it's unused. Adjust all dependencies.

View File

@ -93,7 +93,6 @@ struct WEdit {
long last_get_rule;
struct syntax_rule rule;
char *syntax_type; /* description of syntax highlighting type being used */
int explicit_syntax; /* have we forced the syntax hi. type in spite of the filename? */
/* macro stuff */
int macro_i; /* index to macro[], -1 if not recording a macro */

View File

@ -487,7 +487,7 @@ edit_save_as_cmd (WEdit *edit)
g_free (exp);
edit->modified = 0;
edit->delete_file = 0;
if (different_filename && !edit->explicit_syntax)
if (different_filename)
edit_load_syntax (edit, 0, 0);
edit->force |= REDRAW_COMPLETELY;
return 1;