Fix showCommit feature
Remove dead code