remove dead LEGACY_PythonPrint
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26786
Test Plan: Imported from OSS
Differential Revision: D17566439
Pulled By: zdevito
fbshipit-source-id: ae42b67fc00f9b1bb6ceb81bf278d213636c7f07