about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-25 14:45:26 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-25 14:45:26 +0200
commit969ba2b81567da971084417e1c82e8a8095923b5 (patch)
tree14872d2e4c3acf812674c180d85c891f6dbb1ab5 /src/utils/twtstr.nim
parent36b06265715bebbfaca831e517b547c87054e58c (diff)
downloadchawan-969ba2b81567da971084417e1c82e8a8095923b5.tar.gz
twtstr: remove unused function
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim13
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),