aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-10-12 10:15:22 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-10-12 10:16:39 +0200
commit95a2bea7956f6346c11577645df96e13fe7fec3d (patch)
treeab708dad4566aabe5b10a8bb4bf1e204c9f8c2aa /pkg/osutil/osutil.go
parent4dc2659337ed0252583d99acb87ba38fa0083ce4 (diff)
pkg/ipc, pkg/osutil: remove filepath.Abs fuchsia workarounds
This claimed to be fixed: https://fuchsia.atlassian.net/browse/DNO-158
Diffstat (limited to 'pkg/osutil/osutil.go')
-rw-r--r--pkg/osutil/osutil.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/osutil/osutil.go b/pkg/osutil/osutil.go
index d98e91e19..46919a6c2 100644
--- a/pkg/osutil/osutil.go
+++ b/pkg/osutil/osutil.go
@@ -10,7 +10,6 @@ import (
"os"
"os/exec"
"path/filepath"
- "runtime"
"time"
)
@@ -150,9 +149,6 @@ func ListDir(dir string) ([]string, error) {
var wd string
func init() {
- if runtime.GOOS == "fuchsia" {
- return
- }
var err error
wd, err = os.Getwd()
if err != nil {
@@ -161,10 +157,6 @@ func init() {
}
func Abs(path string) string {
- if runtime.GOOS == "fuchsia" {
- // Getwd/Abs are not supported on fuchsia. Let's hope for best.
- return path
- }
if wd1, err := os.Getwd(); err == nil && wd1 != wd {
panic("don't mess with wd in a concurrent program")
}