Remove dead function (#26259)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26259
This wasn't called from anywhere (confirmed by grep)
ghstack-source-id: 90222268
Test Plan: waitforsandcastle
Differential Revision: D17391417
fbshipit-source-id: 77c395f2f7104995f6af6e3e20d3f615223085b3