removed redundant code from CommitReader