Used to? I know about the misguided and unscientific "conversion therapies" but could you clarify what physical medical procedures were done on gay people? (If that's what you meant).
For what it’s worth, withholding needed medical treatment is every bit as barbaric as forcing unneeded medical treatment into an individual. The intent in both cases is identical: eradicating queer people.