Removed unnecessary template
`-|` only used in the compiler for negative indexing
This commit is contained in:
parent
25a1987517
commit
3142400351
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue