Commit dac3f486 authored by David Crawshaw's avatar David Crawshaw

runtime: remove unused getenv function

Change-Id: I49cda99f81b754e25fad1483de373f7d07d64808
Reviewed-on: https://go-review.googlesource.com/6452Reviewed-by: 's avatarKeith Randall <khr@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
parent 8012a2e9
......@@ -6,15 +6,6 @@ package runtime
import "unsafe"
func getenv(s *byte) *byte {
val := gogetenv(gostringnocopy(s))
if val == "" {
return nil
}
// Strings found in environment are NUL-terminated.
return &bytes(val)[0]
}
var tracebackbuf [128]byte
func gogetenv(key string) string {
......
......@@ -8,15 +8,6 @@ package runtime
import "unsafe"
func getenv(s *byte) *byte {
val := gogetenv(gostringnocopy(s))
if val == "" {
return nil
}
// Strings found in environment are NUL-terminated.
return &bytes(val)[0]
}
func gogetenv(key string) string {
env := environ()
if env == nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment