diff --git a/unix/env_unix.go b/unix/env_unix.go index 2e06b33f..706b3cd1 100644 --- a/unix/env_unix.go +++ b/unix/env_unix.go @@ -25,3 +25,7 @@ func Clearenv() { func Environ() []string { return syscall.Environ() } + +func Unsetenv(key string) error { + return syscall.Unsetenv(key) +} diff --git a/unix/env_unset.go b/unix/env_unset.go deleted file mode 100644 index c44fdc4a..00000000 --- a/unix/env_unset.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build go1.4 - -package unix - -import "syscall" - -func Unsetenv(key string) error { - // This was added in Go 1.4. - return syscall.Unsetenv(key) -}