diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-25 14:45:26 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-25 14:45:26 +0200 |
commit | 969ba2b81567da971084417e1c82e8a8095923b5 (patch) | |
tree | 14872d2e4c3acf812674c180d85c891f6dbb1ab5 /src/utils/twtstr.nim | |
parent | 36b06265715bebbfaca831e517b547c87054e58c (diff) | |
download | chawan-969ba2b81567da971084417e1c82e8a8095923b5.tar.gz |
twtstr: remove unused function
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index a9437a35..35023290 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -721,19 +721,6 @@ func unicodeToAscii*(s: string, checkhyphens, checkbidi, checkjoiners, transitio return none(string) #error return some(labels.join('.')) -#TODO this is stupid -func isValidNonZeroInt*(str: string): bool = - if str.len == 0: return false - if str == "0": return false - for c in str: - if not c.isDigit(): - return false - try: - discard parseInt(str) - except ValueError: - return false - true - # https://www.w3.org/TR/xml/#NT-Name const NameStartCharRanges = [ (0xC0, 0xD6), |