summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/pure/strutils.nim9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index ea42c4403..3b315e564 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -997,15 +997,6 @@ func toOctal*(c: char): string {.rtl, extern: "nsuToOctal".} =
     result[i] = chr(val mod 8 + ord('0'))
     val = val div 8
 
-func fromChar[T: SomeInteger](ch: char): T =
-  runnableExamples:
-    assert fromChar[int8]('6') == 6
-    doAssertRaises AssertionDefect:
-      fromChar[int8]('a')
-
-  assert isDigit(ch)
-  T(ord(ch) - ord('0'))
-
 func fromBin*[T: SomeInteger](s: string): T =
   ## Parses a binary integer value from a string `s`.
   ##