[2539] Removed unnecessary assignments