remove legacy mode for filtertext

was no longer in use
This commit is contained in:
ac-stef
2017-05-22 19:50:31 +02:00
parent d0b309320b
commit ad5a438b86
2 changed files with 1 additions and 12 deletions
-11
View File
@@ -232,17 +232,6 @@ char *filtertext(char *dst, const char *src, int flags, int len)
mapname = (flags & FTXT_MAPNAME) != 0, // only allows lowercase chars, digits, '_', '-' and '.'; probably should be used in combination with TOLOWER
cropwhite = (flags & FTXT_CROPWHITE) != 0, // removes leading and trailing whitespace
pass = false;
#if 1 // classic mode (will be removed, as soon as all sources are clear of it)
switch(flags)
{ // whitespace: no whitespace at all (0), blanks only (1), blanks & newline (2)
case -1: nowhite = nocolor = fillblanks = true; break;
case 2: allownl = allowtab = true;
case 1: allowblanks = true;
case 0: nowhite = true;
nocolor = true;
break;
}
#endif
if(leet || mapname) nocolor = true;
#ifdef FILENAMESALLLOWERCASE
if(filename) tolow = true;