* editwidget.c (edit): Remove unused variable "framed".

This commit is contained in:
Pavel Roskin 2003-07-20 22:15:28 +00:00
parent 688457dc17
commit 0633d91f60
2 changed files with 14 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2003-07-20 Pavel Roskin <proski@gnu.org>
* editwidget.c (edit): Remove unused variable "framed".
2003-07-08 Adam Byrtek <alpha@debian.org> 2003-07-08 Adam Byrtek <alpha@debian.org>
* edit.c (edit_clean): Remove stale lock if any. * edit.c (edit_clean): Remove stale lock if any.

View File

@ -155,7 +155,6 @@ int
edit (const char *_file, int line) edit (const char *_file, int line)
{ {
static int made_directory = 0; static int made_directory = 0;
int framed = 0;
Dlg_head *edit_dlg; Dlg_head *edit_dlg;
WButtonBar *edit_bar; WButtonBar *edit_bar;
@ -187,28 +186,24 @@ edit (const char *_file, int line)
edit_bar = buttonbar_new (1); edit_bar = buttonbar_new (1);
if (!framed) { switch (edit_key_emulation) {
switch (edit_key_emulation) { case EDIT_KEY_EMULATION_NORMAL:
case EDIT_KEY_EMULATION_NORMAL: edit_init_menu_normal (); /* editmenu.c */
edit_init_menu_normal (); /* editmenu.c */ break;
break; case EDIT_KEY_EMULATION_EMACS:
case EDIT_KEY_EMULATION_EMACS: edit_init_menu_emacs (); /* editmenu.c */
edit_init_menu_emacs (); /* editmenu.c */ break;
break;
}
edit_menubar = menubar_new (0, 0, COLS, EditMenuBar, N_menus);
} }
edit_menubar = menubar_new (0, 0, COLS, EditMenuBar, N_menus);
add_widget (edit_dlg, wedit); add_widget (edit_dlg, wedit);
if (!framed) add_widget (edit_dlg, edit_menubar);
add_widget (edit_dlg, edit_menubar);
add_widget (edit_dlg, edit_bar); add_widget (edit_dlg, edit_bar);
run_dlg (edit_dlg); run_dlg (edit_dlg);
if (!framed) edit_done_menu (); /* editmenu.c */
edit_done_menu (); /* editmenu.c */
destroy_dlg (edit_dlg); destroy_dlg (edit_dlg);