summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:13 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:01:13 +0800
commit0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9 (patch)
tree1ab7c90ef8dfcf594a0240c77f34c97431218b33
parentaf86ff908656d1b16a60704d80810ec5d2101726 (diff)
downloadpttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.tar
pttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.tar.gz
pttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.tar.bz2
pttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.tar.lz
pttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.tar.xz
pttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.tar.zst
pttbbs-0ad03fc42972e6b3e9a80b7f45149b286bf3b1b9.zip
remove dead code
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c15
-rw-r--r--mbbsd/announce.c13
-rw-r--r--mbbsd/io.c12
-rw-r--r--mbbsd/register.c12
-rw-r--r--mbbsd/talk.c40
-rw-r--r--mbbsd/term.c23
6 files changed, 0 insertions, 115 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index c3d6ebf8..2872b01b 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1277,21 +1277,6 @@ scan_register_form(const char *regfile, int automode, int neednum)
move(5, 0);
prints("您審了 %d 份註冊單,AutoScan 審了 %d 份", nSelf, nAuto);
- /** DickG: 將審了幾份的相關資料 post 到 Security 板上 ***********/
- /*
- * DickG: 因應新的站長上站需審核方案,是故沒有必要留下 record ime(buf,
- * 200, "%Y/%m/%d/%H:%M", pt);
- *
- * strcpy(xboard, "Security"); setbpath(xfpath, xboard); stampfile(xfpath,
- * &xfile); strcpy(xfile.owner, "系統"); strcpy(xfile.title, "[報告]
- * 審核記錄"); xptr = fopen(xfpath, "w"); fprintf(xptr, "\n時間:%s %s
- * 審了 %d 份註冊單\n AutoScan 審了 %d 份註冊單\n 共計 %d 份。", buf,
- * cuser.userid, nSelf, nAuto, nSelf+nAuto); fclose(xptr); setbdir(fname,
- * xboard); append_record(fname, &xfile, sizeof(xfile));
- * outgo_post(&xfile, xboard); touchbtotal(getbnum(xboard));
- * cuser.numposts++;
- */
- /*********************************************/
pressanykey();
return (0);
}
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index da88d20e..6f7000da 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -700,19 +700,6 @@ a_showname(const menu_t * pm)
pressanykey();
}
-#if 0
-static char *a_title;
-
-static void
-atitle(void)
-{
- showtitle("精華文章", a_title);
- outs("[←]離開 [→]閱\讀 [^P]發表文章 [b]備忘錄 [d]刪除 [q]精華區 "
- "[TAB]文摘 [h]elp\n\033[7m 編號 日 期 作 者 "
- "文 章 標 題\033[m");
-}
-#endif
-
static int
isvisible_man(const menu_t * me)
{
diff --git a/mbbsd/io.c b/mbbsd/io.c
index def83a4a..f2918202 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -483,18 +483,6 @@ strip_ansi(char *buf, const char *str, int mode)
if( buf )
*buf = 0;
return count;
-
-
- /* Rewritten by scw.
- * Moved from vote.c (here is a better place for this function).
- * register int ansi, count = 0;
- * for (ansi = 0; *str ; str++) { if (*str == 27) { if (mode) { if (buf)
- * *buf++ = *str; count++; } ansi = 1; } else if (ansi && strchr(
- * "[;1234567890mfHABCDnsuJKc=n", *str)) { if ((mode == NO_RELOAD &&
- * !strchr("c=n", *str)) || (mode == ONLY_COLOR && strchr("[;1234567890m",
- * *str))) { if (buf) *buf++ = *str; count++; } if (strchr("mHn ", *str))
- * ansi = 0; } else { ansi = 0; if (buf) *buf++ = *str; count++; } } if
- * (buf) *buf = '\0'; return count; */
}
void
diff --git a/mbbsd/register.c b/mbbsd/register.c
index 0a2c9078..8bf88202 100644
--- a/mbbsd/register.c
+++ b/mbbsd/register.c
@@ -315,18 +315,6 @@ check_register(void)
sizeof(cuser.address), DOECHO);
- /*
- * if(!strchr(cuser.email, '@')) { bell(); move(t_lines - 4, 0); prints("
- * 您的權益,請填寫真實的 E-mail address," "以資確認閣下身份,\n" "
- * 033[44muser@domain_name\033[0m 或 \033[44muser"
- * "@\\[ip_number\\]\033[0m。\n\n" "※ 如果您真的沒有 E-mail, turn]
- * 即可。");
- *
- * do { getdata(8, 0, "電子信箱:", cuser.email, sizeof(cuser->email),
- * DOECHO); if(!cuser.email[0]) sprintf(cuser->email, "%s%s",
- * cuser.userid, str_mail_address); } while(!strchr(cuser->email, '@'));
- *
- * } */
if (!HAS_PERM(PERM_SYSOP)) {
/* 回覆過身份認證信函,或曾經 E-mail post 過 */
clear();
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 58e691b6..db2d3d35 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1609,14 +1609,6 @@ t_showhelp(void)
pressanykey();
}
-/*
- * static int listcuent(userinfo_t * uentp) { if((!uentp->invisible ||
- * HAS_PERM(PERM_SYSOP) || HAS_PERM(PERM_SEECLOAK)))
- * AddNameList(uentp->userid); return 0; }
- *
- * static void creat_list() { CreateNameList(); apply_ulist(listcuent); }
- */
-
/* Kaede show friend description */
static char *
friend_descript(const userinfo_t * uentp, char *desc_buf, int desc_buflen)
@@ -2960,38 +2952,6 @@ talkreply(void)
currstat = currstat0;
}
-/* 網友動態簡表 */
-/*
- * not used static int shortulist(userinfo_t * uentp) { static int lineno,
- * fullactive, linecnt; static int moreactive, page, num; char uentry[50];
- * int state;
- *
- * if (!lineno){ lineno = 3; page = moreactive ? (page + p_lines * 3) : 0;
- * linecnt = num = moreactive = 0; move(1, 70); prints("Page: %d", page /
- * (p_lines) / 3 + 1); move(lineno, 0); }
- *
- * if (uentp == NULL){ int finaltally;
- *
- * clrtoeol(); move(++lineno, 0); clrtobot(); finaltally = fullactive; lineno =
- * fullactive = 0; return finaltally; }
- *
- * if ((!HAS_PERM(PERM_SYSOP) && !HAS_PERM(PERM_SEECLOAK) && uentp->invisible)
- * || ((friend_stat(currutmp, uentp) & HRM) && !HAS_PERM(PERM_SYSOP))){ if
- * (lineno >= b_lines) return 0; if (num++ < page) return 0; memset(uentry, '
- * ', 25); uentry[25] = '\0'; } else{ fullactive++; if (lineno >= b_lines){
- * moreactive = 1; return 0; } if (num++ < page) return 0;
- *
- * state = (currutmp == uentp) ? 10 :
- * (friend_stat(currutmp,uentp)&ST_FRIEND)>>2;
- *
- * if (PERM_HIDE(uentp)) state = 9;
- *
- * sprintf(uentry, "%s%-13s%c%-10s%s ", fcolor[state], uentp->userid,
- * uentp->invisible ? '#' : ' ', modestring(uentp, 1), state ? "\033[0m" :
- * ""); } if (++linecnt < 3){ strcat(uentry, "│"); outs(uentry); } else{
- * outs(uentry); linecnt = 0; clrtoeol(); move(++lineno, 0); } return 0; }
- */
-
#ifdef PLAY_ANGEL
/* 小天使小主人處理函式 */
int
diff --git a/mbbsd/term.c b/mbbsd/term.c
index 3162844e..94067e99 100644
--- a/mbbsd/term.c
+++ b/mbbsd/term.c
@@ -1,14 +1,6 @@
/* $Id$ */
#include "bbs.h"
-int tgetent(const char *bp, char *name);
-char *tgetstr(const char *id, char **area);
-int tgetflag(const char *id);
-int tgetnum(const char *id);
-int tputs(const char *str, int affcnt, int (*putc) (int));
-char *tparm(const char *str,...);
-char *tgoto(const char *cap, int col, int row);
-
/* ----------------------------------------------------- */
/* basic tty control */
/* ----------------------------------------------------- */
@@ -37,21 +29,6 @@ init_tty(void)
#define TERMCOMSIZE (40)
-#if 0
-static char *outp;
-static int *outlp;
-
-static int
-outcf(int ch)
-{
- if (*outlp < TERMCOMSIZE) {
- (*outlp)++;
- *outp++ = ch;
- }
- return 0;
-}
-#endif
-
static void
term_resize(int sig)
{