return ENOTIMPL on windows
remove dead code