summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mbbsd/bbs.c6
-rw-r--r--mbbsd/board.c21
-rw-r--r--mbbsd/read.c29
-rw-r--r--mbbsd/record.c20
4 files changed, 1 insertions, 75 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 4f197b3e..519ac5aa 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -250,12 +250,6 @@ cmpfmode(fileheader_t * fhdr)
}
int
-cmpfowner(fileheader_t * fhdr)
-{
- return !strcasecmp(fhdr->owner, currowner);
-}
-
-int
whereami(int ent, fileheader_t * fhdr, char *direct)
{
boardheader_t *bh, *p[32], *root;
diff --git a/mbbsd/board.c b/mbbsd/board.c
index fed652bb..2cbd6df5 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -95,27 +95,6 @@ HasPerm(boardheader_t * bptr)
return 1;
}
-#if 0
-static int
-have_author(char *brdname)
-{
- char dirname[100];
-
- snprintf(dirname, sizeof(dirname),
- "¥¿¦b·j´M§@ªÌ%s ¬ÝªO:%s.....",
- currauthor, brdname);
- move(b_lines, 0);
- clrtoeol();
- outs(dirname);
- refresh();
-
- setbdir(dirname, brdname);
- str_lower(currowner, currauthor);
-
- return search_rec(dirname, cmpfowner);
-}
-#endif
-
static int
check_newpost(boardstat_t * ptr)
{ /* Ptt §ï */
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 2456fdda..6826202a 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -867,34 +867,7 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey
if (mode == NEWDIRECT) {
if (last_line == 0) {
- if (curredit & EDIT_ITEM) {
- outs("¨S¦³ª««~");
- refresh();
- goto return_i_read;
- } else if (curredit & EDIT_MAIL) {
- outs("¨S¦³¨Ó«H");
- refresh();
- goto return_i_read;
- } else if (currmode & MODE_ETC) {
- board_etc(); /* Kaede */
- outmsg("©|¥¼¦¬¿ý¨ä¥¦¤å³¹");
- refresh();
- } else if (currmode & MODE_DIGEST) {
- board_digest(); /* Kaede */
- outmsg("©|¥¼¦¬¿ý¤åºK");
- refresh();
- } else if (currmode & MODE_SELECT) {
- board_select(); /* Leeym */
- outmsg("¨S¦³¦¹¨t¦Cªº¤å³¹");
- refresh();
- } else {
- getdata(b_lines - 1, 0,
- "¬ÝªO·s¦¨¥ß (P)µoªí¤å³¹ (Q)Â÷¶}¡H[Q] ",
- genbuf, 4, LCECHO);
- if (genbuf[0] == 'p')
- do_post();
- goto return_i_read;
- }
+ outs("¨S¦³¥ô¦ó¤å³¹..\n");
}
num = last_line - p_lines + 1;
locmem = getkeep(currdirect, num < 1 ? 1 : num, last_line);
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