diff --git a/src/runtime/os1_windows.go b/src/runtime/os1_windows.go index 744b1a90721..f91e9d596d3 100644 --- a/src/runtime/os1_windows.go +++ b/src/runtime/os1_windows.go @@ -220,7 +220,7 @@ func goenvs() { n++ } } - envs = makeStringSlice(n) + envs = make([]string, n) for i := range envs { envs[i] = gostringw(&p[0]) diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index 0f660038fb4..6d32de2a4fa 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -43,10 +43,6 @@ func tickspersecond() int64 { return r } -func makeStringSlice(n int) []string { - return make([]string, n) -} - var envs []string var argslice []string