[SPMD] Remove the unused code (#99075)
Remove the unused code
Differential Revision: [D44973692](https://our.internmc.facebook.com/intern/diff/D44973692/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99075
Approved by: https://github.com/lessw2020