summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
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 /mbbsd/io.c
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
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c12
1 files changed, 0 insertions, 12 deletions
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