Remove useless in-place operation