shithub: mc

Download patch

ref: e101ebf1f80607cca8ee31fee308b50025c96dab
parent: 4abdb2acb85699bd1a43118b7189c5a504d65a19
author: Ori Bernstein <[email protected]>
date: Thu Jan 9 13:31:44 EST 2014

Remove duplicated funtionality.

    Use std.slpush()

--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -22,7 +22,6 @@
     optparse.myr \
     rand.myr \
     resolve.myr \
-    slappend.myr \
     slcp.myr \
     sldup.myr \
     sleq.myr \
--- a/libstd/slappend.myr
+++ /dev/null
@@ -1,11 +1,0 @@
-use "alloc.use"
-
-pkg std =
-	generic slappend	: (sl : @a[:], v : @a	-> @a[:])
-;;
-
-generic slappend = {sl, v
-	sl = slgrow(sl, sl.len + 1)
-	sl[sl.len - 1] = v
-	-> sl
-}