remove unused vars and add tabsize in format diff template