From ca0c30cde786511a5318018fa86239e51766775d Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 2 Apr 2012 14:02:35 +0000 Subject: Deprecate uf_colored_modmark. Too few people use it. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5596 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/include/uflags.h | 2 +- pttbbs/mbbsd/bbs.c | 6 ------ pttbbs/mbbsd/user.c | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pttbbs/include/uflags.h b/pttbbs/include/uflags.h index 532138c0..5d40abfa 100644 --- a/pttbbs/include/uflags.h +++ b/pttbbs/include/uflags.h @@ -20,7 +20,7 @@ #define UF_DBCS_DROP_REPEAT 0x00000800 // detect and drop repeated input from evil clients // #define UF_DBCS_??? 0x00000800 // reserved #define UF_NO_MODMARK 0x00001000 // true if modified files are NOT marked -#define UF_COLORED_MODMARK 0x00002000 // true if mod-mark is coloured. +// #define UF_COLORED_MODMARK 0x00002000 // deprecated flag. RESET before you use it. // #define UF_MODMARK_??? 0x00004000 // reserved // #define UF_MODMARK_??? 0x00008000 // reserved #define UF_DEFBACKUP 0x00010000 // true if user defaults to backup diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 1d32d545..bcb21973 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -644,12 +644,6 @@ readdoent(int num, fileheader_t * ent) { oisunread = isunread = 0; } - // if user wants colored marks, use 'read' marks - else if (HasUserFlag(UF_COLORED_MODMARK)) - { - isunread = 0; - typeattr = ANSI_COLOR(36); - } } // handle 'type' diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 9331fa95..b0e1cf2b 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -427,7 +427,6 @@ void Customize(void) UF_FAV_ADDNEW, UF_FAV_NOHILIGHT, UF_NO_MODMARK , - UF_COLORED_MODMARK, #ifdef DBCSAWARE UF_DBCS_AWARE, UF_DBCS_DROP_REPEAT, @@ -444,7 +443,6 @@ void Customize(void) "MYFAV 新板自動進我的最愛", "MYFAV 單色顯示我的最愛", "MODMARK 隱藏文章修改符號(推文/修文) (~)", - "MODMARK 改用色彩代替修改符號 (+)", #ifdef DBCSAWARE "DBCS 自動偵測雙位元字集(如全型中文)", "DBCS 忽略連線程式為雙位元字集送出的重複按鍵", -- cgit v1.2.3