Remove useless code and add comment.