Remove unnecessary filesystem enumeration
Replace unused variable names with underscores