diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 03:22:36 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 03:22:36 +0800 |
commit | c18d9431a7eb81d7e200b2a571e84a9fd4aeafbb (patch) | |
tree | b07d0a14a95adbfef2c7d95b7cbbc02d82e53d65 /mbbsd/record.c | |
parent | 147904d69739fa27a6f181e9e7493ea4462b470c (diff) | |
download | pttbbs-Ptt.read@1812.tar pttbbs-Ptt.read@1812.tar.gz pttbbs-Ptt.read@1812.tar.bz2 pttbbs-Ptt.read@1812.tar.lz pttbbs-Ptt.read@1812.tar.xz pttbbs-Ptt.read@1812.tar.zst pttbbs-Ptt.read@1812.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.c | 20 |
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 |