diff options
author | David Crawshaw <crawshaw@golang.org> | 2015-03-02 04:14:49 -0500 |
---|---|---|
committer | David Crawshaw <crawshaw@golang.org> | 2015-03-02 19:19:25 +0000 |
commit | dac3f486ac0be26fdbc0cf08d1cfecc43b4c2c53 (patch) | |
tree | 4077fcebafb5715c0f8d41269fb177e32fb0bdd6 /src/runtime/env_posix.go | |
parent | 8012a2e9c96c6c14607388f85079400d2d419c0b (diff) | |
download | go-dac3f486ac0be26fdbc0cf08d1cfecc43b4c2c53.tar.gz go-dac3f486ac0be26fdbc0cf08d1cfecc43b4c2c53.zip |
runtime: remove unused getenv function
Change-Id: I49cda99f81b754e25fad1483de373f7d07d64808
Reviewed-on: https://go-review.googlesource.com/6452
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/env_posix.go')
-rw-r--r-- | src/runtime/env_posix.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/runtime/env_posix.go b/src/runtime/env_posix.go index b6567d39f4..5e49287421 100644 --- a/src/runtime/env_posix.go +++ b/src/runtime/env_posix.go @@ -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 { |