From 95a2bea7956f6346c11577645df96e13fe7fec3d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 12 Oct 2017 10:15:22 +0200 Subject: pkg/ipc, pkg/osutil: remove filepath.Abs fuchsia workarounds This claimed to be fixed: https://fuchsia.atlassian.net/browse/DNO-158 --- pkg/osutil/osutil.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pkg/osutil') 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") } -- cgit mrf-deployment