From c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 22 Apr 2004 19:22:36 +0000 Subject: remove useless codes git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1811 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'mbbsd/record.c') diff --git a/mbbsd/record.c b/mbbsd/record.c index 605f5417..efc1089c 100644 --- a/mbbsd/record.c +++ b/mbbsd/record.c @@ -311,26 +311,6 @@ delete_range(char *fpath, int id1, int id2) return 0; } #endif -int -search_rec(char *dirname, int (*filecheck) ()) -{ - fileheader_t fhdr; - FILE *fp; - int ans = 0; - - if (!(fp = fopen(dirname, "r"))) - return 0; - - while (fread(&fhdr, sizeof(fhdr), 1, fp)) { - ans++; - if ((*filecheck) (&fhdr)) { - fclose(fp); - return ans; - } - } - fclose(fp); - return 0; -} #ifdef SAFE_ARTICLE_DELETE -- cgit v1.2.3