Remove assignment without effect.