* 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>
* edit.c (edit_clean): Remove stale lock if any.

View File

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