Remove redundant code

This is a minor patch to remove redundant code.