aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
authorLuuk van Dijk <lvd@golang.org>2011-05-14 00:35:10 +0200
committerLuuk van Dijk <lvd@golang.org>2011-05-14 00:35:10 +0200
commit36cec789cd2c3631419cc2a46693590965952bf7 (patch)
tree95e514b8280ae0d1524ab0e6b9c1ebff364a9e29 /src/pkg/runtime
parentba006e6b6afeb8a6718cfbfb04104cc8f4b28a1a (diff)
downloadgo-36cec789cd2c3631419cc2a46693590965952bf7.tar.xz
gc: generalize dst = append(src,...) inlining to arbitrary src and dst arguments.
R=rsc CC=golang-dev https://golang.org/cl/4517057
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/slice.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c
index 0e7f8e080e..9146c177f2 100644
--- a/src/pkg/runtime/slice.c
+++ b/src/pkg/runtime/slice.c
@@ -48,20 +48,6 @@ makeslice1(SliceType *t, int32 len, int32 cap, Slice *ret)
ret->array = runtime·mal(size);
}
-// append(type *Type, n int, old []T, ...,) []T
-#pragma textflag 7
-void
-runtime·append(SliceType *t, int32 n, Slice old, ...)
-{
- Slice sl;
- Slice *ret;
-
- sl.len = n;
- sl.array = (byte*)(&old+1);
- ret = (Slice*)(sl.array + ((t->elem->size*n+sizeof(uintptr)-1) & ~(sizeof(uintptr)-1)));
- appendslice1(t, old, sl, ret);
-}
-
// appendslice(type *Type, x, y, []T) []T
void
runtime·appendslice(SliceType *t, Slice x, Slice y, Slice ret)