From fcc6f9bbea4cf68337da8a906f6fc427e9978b24 Mon Sep 17 00:00:00 2001 From: Pavel Tsekov Date: Wed, 15 Mar 2006 13:20:24 +0000 Subject: [PATCH] * edit/editcmd.c (edit_new_cmd): Remove redundant call to `edit_unlock_file()'. (edit_ok_to_exit): Likewise. --- edit/ChangeLog | 6 ++++++ edit/editcmd.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 522a4c5d1..dc96a1199 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,9 @@ +2006-03-15 Pavel Tsekov + + * editcmd.c (edit_new_cmd): Remove redundant call to + `edit_unlock_file()'. + (edit_ok_to_exit): Likewise. + 2006-02-10 Roland Illig * edit.c (user_menu): There is no need to prefix the filename diff --git a/edit/editcmd.c b/edit/editcmd.c index 10dbb67af..399f5ac6b 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -820,8 +820,6 @@ int edit_new_cmd (WEdit * edit) } edit->force |= REDRAW_COMPLETELY; - if (edit->locked) - edit->locked = edit_unlock_file (edit->filename); return edit_renew (edit); /* if this gives an error, something has really screwed up */ } @@ -2142,8 +2140,6 @@ edit_ok_to_exit (WEdit *edit) return 0; break; case 2: - if (edit->locked) - edit->locked = edit_unlock_file (edit->filename); break; case 0: case -1: