mirror of
https://github.com/golang/go
synced 2024-11-19 07:54:43 -07: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:
parent
f584c05fcc
commit
ec7d8a6167
@ -220,7 +220,7 @@ func goenvs() {
|
|||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
envs = makeStringSlice(n)
|
envs = make([]string, n)
|
||||||
|
|
||||||
for i := range envs {
|
for i := range envs {
|
||||||
envs[i] = gostringw(&p[0])
|
envs[i] = gostringw(&p[0])
|
||||||
|
@ -43,10 +43,6 @@ func tickspersecond() int64 {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeStringSlice(n int) []string {
|
|
||||||
return make([]string, n)
|
|
||||||
}
|
|
||||||
|
|
||||||
var envs []string
|
var envs []string
|
||||||
var argslice []string
|
var argslice []string
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user