diff --git a/unix/syscall_aix_test.go b/unix/syscall_aix_test.go index 59ecff4b..6787643b 100644 --- a/unix/syscall_aix_test.go +++ b/unix/syscall_aix_test.go @@ -166,17 +166,3 @@ func TestPselect(t *testing.T) { t.Errorf("Pselect: timeout should have been at least %v, got %v", dur, took) } } - -// stringsFromByteSlice converts a sequence of attributes to a []string. -// On Linux, each entry is a NULL-terminated string. -func stringsFromByteSlice(buf []byte) []string { - var result []string - off := 0 - for i, b := range buf { - if b == 0 { - result = append(result, string(buf[off:i])) - off = i + 1 - } - } - return result -}