1
0
mirror of https://github.com/golang/go synced 2024-10-01 15:58:33 -06:00

runtime: remove makeStringSlice

Change-Id: I38d716de9d5a9c1b868641262067d0456d52c86d
Reviewed-on: https://go-review.googlesource.com/6612
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
David Crawshaw 2015-03-03 12:25:36 -05:00
parent f584c05fcc
commit ec7d8a6167
2 changed files with 1 additions and 5 deletions

View File

@ -220,7 +220,7 @@ func goenvs() {
n++
}
}
envs = makeStringSlice(n)
envs = make([]string, n)
for i := range envs {
envs[i] = gostringw(&p[0])

View File

@ -43,10 +43,6 @@ func tickspersecond() int64 {
return r
}
func makeStringSlice(n int) []string {
return make([]string, n)
}
var envs []string
var argslice []string