Remove unused function in src/file.c