Remove old code that is unused in test/ (#66331)
Summary:
.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/66331
Reviewed By: gchanan
Differential Revision: D31533549
Pulled By: albanD
fbshipit-source-id: 5addd11edc4199a88f10f0ff236be59ec2289903