From 0633d91f6036424aa922d44776300282a1568fbd Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 20 Jul 2003 22:15:28 +0000 Subject: [PATCH] * editwidget.c (edit): Remove unused variable "framed". --- edit/ChangeLog | 4 ++++ edit/editwidget.c | 25 ++++++++++--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 6123b3429..fe4240d2a 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,7 @@ +2003-07-20 Pavel Roskin + + * editwidget.c (edit): Remove unused variable "framed". + 2003-07-08 Adam Byrtek * edit.c (edit_clean): Remove stale lock if any. diff --git a/edit/editwidget.c b/edit/editwidget.c index 832f7a14a..60dd987d0 100644 --- a/edit/editwidget.c +++ b/edit/editwidget.c @@ -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,28 +186,24 @@ 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 */ - break; - case EDIT_KEY_EMULATION_EMACS: - edit_init_menu_emacs (); /* editmenu.c */ - break; - } - edit_menubar = menubar_new (0, 0, COLS, EditMenuBar, N_menus); + switch (edit_key_emulation) { + case EDIT_KEY_EMULATION_NORMAL: + edit_init_menu_normal (); /* editmenu.c */ + break; + case EDIT_KEY_EMULATION_EMACS: + edit_init_menu_emacs (); /* editmenu.c */ + 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_menubar); add_widget (edit_dlg, edit_bar); run_dlg (edit_dlg); - if (!framed) - edit_done_menu (); /* editmenu.c */ + edit_done_menu (); /* editmenu.c */ destroy_dlg (edit_dlg);