Remove unnecessary assignments in MatchPrefix