aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2015-03-03 12:25:36 -0500
committerDavid Crawshaw <crawshaw@golang.org>2015-03-03 17:54:47 +0000
commitec7d8a6167309d2f9d6ee63c20fdfa960ce63bce (patch)
tree37dc0e3c80912614422d01f7d3dab48b038eb334 /src
parentf584c05fcc38fef1582681a7e2841b725f0a827d (diff)
downloadgo-ec7d8a6167309d2f9d6ee63c20fdfa960ce63bce.tar.xz
runtime: remove makeStringSlice
Change-Id: I38d716de9d5a9c1b868641262067d0456d52c86d Reviewed-on: https://go-review.googlesource.com/6612 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/os1_windows.go2
-rw-r--r--src/runtime/runtime.go4
2 files changed, 1 insertions, 5 deletions
diff --git a/src/runtime/os1_windows.go b/src/runtime/os1_windows.go
index 744b1a9072..f91e9d596d 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 0f660038fb..6d32de2a4f 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