From e7eabcf6a48c5be7b961495bebb276e92cf8e067 Mon Sep 17 00:00:00 2001 From: cirdan Date: Sat, 11 Nov 2017 21:19:16 +0100 Subject: [PATCH] Remove unused enum CharSetFilter values Remove unused enum CharSetFilter values CS_NUMERAL_SPACE and CS_ALPHA. --- src/string.cpp | 2 -- src/string.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/string.cpp b/src/string.cpp index 07563b719..4c129f583 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -373,8 +373,6 @@ bool IsValidChar(WChar key, CharSetFilter afilter) switch (afilter) { case CS_ALPHANUMERAL: return IsPrintable(key); case CS_NUMERAL: return (key >= '0' && key <= '9'); - case CS_NUMERAL_SPACE: return (key >= '0' && key <= '9') || key == ' '; - case CS_ALPHA: return IsPrintable(key) && !(key >= '0' && key <= '9'); case CS_HEXADECIMAL: return (key >= '0' && key <= '9') || (key >= 'a' && key <= 'f') || (key >= 'A' && key <= 'F'); } diff --git a/src/string.h b/src/string.h index 765c384ab..22b58156a 100644 --- a/src/string.h +++ b/src/string.h @@ -239,8 +239,6 @@ static inline bool IsWhitespace(WChar c) enum CharSetFilter { CS_ALPHANUMERAL, ///< Both numeric and alphabetic and spaces and stuff CS_NUMERAL, ///< Only numeric ones - CS_NUMERAL_SPACE, ///< Only numbers and spaces - CS_ALPHA, ///< Only alphabetic values CS_HEXADECIMAL, ///< Only hexadecimal characters }; -- 2.11.4.GIT