remove some TH dead code (#34644)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/34644
Test Plan: Imported from OSS
Differential Revision: D20423063
Pulled By: ngimel
fbshipit-source-id: 2783345ea9b3ed65e51a7d0e17cfa29f2c12cc43