aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Dessaux2022-02-17 02:04:42 +0100
committerJulien Dessaux2022-02-17 02:04:42 +0100
commit4d03541e52b69231e20038ef1c2b2ae2a7b8aea3 (patch)
treeccab3fa1aaa71272813190ca5ff3202995421b28 /src
parentFixed test failing in nim 1.6 (diff)
downloadnimfunge98-4d03541e52b69231e20038ef1c2b2ae2a7b8aea3.tar.gz
nimfunge98-4d03541e52b69231e20038ef1c2b2ae2a7b8aea3.tar.bz2
nimfunge98-4d03541e52b69231e20038ef1c2b2ae2a7b8aea3.zip
Simplified unnecessary code
Diffstat (limited to 'src')
-rw-r--r--src/stack.nim2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stack.nim b/src/stack.nim
index b100263..d6493a3 100644
--- a/src/stack.nim
+++ b/src/stack.nim
@@ -48,8 +48,6 @@ func Clear*(s: var Stack) =
func Duplicate*(s: var Stack) =
if s.height > 0:
s.Push(s.data[s.height-1])
- else:
- s.PushVector((0, 0))
func Swap*(s: var Stack) =
let a = s.Pop