chunk_file: General cleanup

- Remove unnecessary ifdefs
- Remove commented out code. Can be retrieved later if needed.