[minor] removed redundant code