Removed unnecessary template

`-|` only used in the compiler for negative indexing
This commit is contained in:
apense
2015-06-09 16:21:33 -04:00
parent 25a1987517
commit 3142400351

View File

@@ -2859,9 +2859,6 @@ proc `/`*(x, y: int): float {.inline, noSideEffect.} =
## integer division that results in a float.
result = toFloat(x) / toFloat(y)
template `-|`*(b, s: expr): expr =
(if b >= 0: b else: s.len + b)
template spliceImpl(s, a, L, b: expr): stmt {.immediate.} =
# make room for additional elements or cut:
var slen = s.len