diff options
Diffstat (limited to 'src/string.cpp')
-rw-r--r-- | src/string.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/string.cpp b/src/string.cpp index 32f45ade8..7557f6d1d 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -248,16 +248,6 @@ void str_validate(char *str, const char *last, StringValidationSettings settings /* Replace the undesirable character with a question mark */ str += len; if ((settings & SVS_REPLACE_WITH_QUESTION_MARK) != 0) *dst++ = '?'; - - /* In case of these two special cases assume that they really - * mean SETX/SETXY and also "eat" the parameter. If this was - * not the case the string was broken to begin with and this - * would not break much more. */ - if (c == SCC_SETX) { - str++; - } else if (c == SCC_SETXY) { - str += 2; - } } } |