summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/repr_v2.nim7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/system/repr_v2.nim b/lib/system/repr_v2.nim
index d87e07b7e..0e9bec0f3 100644
--- a/lib/system/repr_v2.nim
+++ b/lib/system/repr_v2.nim
@@ -9,8 +9,6 @@ proc isNamedTuple(T: typedesc): bool {.magic: "TypeTrait".}
 proc distinctBase(T: typedesc, recursive: static bool = true): typedesc {.magic: "TypeTrait".}
   ## imported from typetraits
 
-proc skipRanges(T: typedesc): typedesc {.magic: "TypeTrait".}
-
 proc repr*(x: NimNode): string {.magic: "Repr", noSideEffect.}
 
 proc repr*(x: int): string =
@@ -98,10 +96,7 @@ proc repr*(p: proc): string =
   repr(cast[ptr pointer](unsafeAddr p)[])
 
 template repr*(x: distinct): string =
-  when x is range: # hacks for ranges with distinct sub types
-    repr(distinctBase(skipRanges(typeof(x)))(x))
-  else:
-    repr(distinctBase(typeof(x))(x))
+  repr(distinctBase(typeof(x))(x))
 
 template repr*(t: typedesc): string = $t