remove unused code in os_files_private #1028