In the United States, I'm guessing that one can no longer commit a person to a mental hospital (AKA insane asylum) with the only reason for commitment being: "said person is gay".
Homosexuality is no longer consider to be a mental illness; it was defined as a mental illness in the past. When was this legal change (the one in the title of this webpage) made?