From 2b8b56ddb2ce08f76bd6c1f00b2c3e2b28b3af30 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 26 Feb 2001 16:59:42 +0000 Subject: [PATCH] * edit.c (edit_init_file): Remove, it's useless. All the necessary files should be created when needed. * edit.h: Remove declaration of edit_init_file(). --- gtkedit/ChangeLog | 6 ++++++ gtkedit/edit.c | 10 ---------- gtkedit/edit.h | 1 - 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/gtkedit/ChangeLog b/gtkedit/ChangeLog index 4ce0a2403..14499c070 100644 --- a/gtkedit/ChangeLog +++ b/gtkedit/ChangeLog @@ -1,3 +1,9 @@ +2001-02-26 Pavel Roskin + + * edit.c (edit_init_file): Remove, it's useless. All the + necessary files should be created when needed. + * edit.h: Remove declaration of edit_init_file(). + 2000-11-01 Andrew V. Samoilov * editcmd.c (canonicalize_pathname) [GTK]: memory leaking fixed diff --git a/gtkedit/edit.c b/gtkedit/edit.c index 8263447f9..8e6545dcd 100644 --- a/gtkedit/edit.c +++ b/gtkedit/edit.c @@ -2797,13 +2797,3 @@ void user_menu (WEdit *edit) edit->force |= REDRAW_COMPLETELY; return; } - -void edit_init_file() -{ - FILE *f; - - if ((f = fopen (catstrs (home_dir, ERROR_FILE, 0), "w"))) fclose(f); - if ((f = fopen (catstrs (home_dir, BLOCK_FILE, 0), "w"))) fclose(f); - if ((f = fopen (catstrs (home_dir, TEMP_FILE, 0) , "w"))) fclose(f); - return; -} diff --git a/gtkedit/edit.h b/gtkedit/edit.h index 601e2bb0a..8c1646183 100644 --- a/gtkedit/edit.h +++ b/gtkedit/edit.h @@ -458,7 +458,6 @@ void book_mark_inc (WEdit * edit, int line); void book_mark_dec (WEdit * edit, int line); void user_menu (WEdit *edit); -void edit_init_file(); #ifdef MIDNIGHT