Remove unused parameters in CommitDiffListFragment

Remove unused parameter from private method,
reduce scope of local variables.
Closes #387