remove useless return statements