From ec7d8a6167309d2f9d6ee63c20fdfa960ce63bce Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Tue, 3 Mar 2015 12:25:36 -0500 Subject: [PATCH] runtime: remove makeStringSlice Change-Id: I38d716de9d5a9c1b868641262067d0456d52c86d Reviewed-on: https://go-review.googlesource.com/6612 Reviewed-by: Ian Lance Taylor --- src/runtime/os1_windows.go | 2 +- src/runtime/runtime.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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