summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-23 03:22:36 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-23 03:22:36 +0800
commitc18d9431a7eb81d7e200b2a571e84a9fd4aeafbb (patch)
treeb07d0a14a95adbfef2c7d95b7cbbc02d82e53d65 /mbbsd/record.c
parent147904d69739fa27a6f181e9e7493ea4462b470c (diff)
downloadpttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.tar
pttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.tar.gz
pttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.tar.bz2
pttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.tar.lz
pttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.tar.xz
pttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.tar.zst
pttbbs-c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb.zip
remove useless codesPtt.read@1812
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1811 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c20
1 files changed, 0 insertions, 20 deletions
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