The LGTBQ community welcomed a move by lawmakers in Australia's second-largest state to cut a controversial "unwanted homosexual advances" or "gay panic" statute from the criminal code on Tuesday.

The Queensland, Australia, parliament voted Tuesday night to abolish the language that allowed defendants to argue for a reduction to manslaughter from murder by claiming an unwanted homosexual advance provoked violence.

RESTAURANT'S TRANSGENDER BATHROOM SIGN GARNERS SUPPORT, ANGERS OTHERS

The effort to remove the defense was led by the a priest, Father Paul Kelly, after the 2009 fatal bashing of Wayne Ruks in his church yard. Killers raised the defense at trial, after claiming Ruks had grabbed a killers’ crotch, which incited the violent encounter.

The court used section 304 of the Criminal Code -- killing on provocation — to lessen the jail terms for Ruks’ muderers.

Very proud to pass legislation abolishing the gay panic defence in Qld. https://t.co/CRhFguJGOV — Yvette D'Ath (@YvetteDAth) March 21, 2017

“The passing of this legislation sends an important message that discrimination is not acceptable and that we value the LBGTI community,” Queensland Attorney General and Minister for Justice Yvette D’Ath said.

South Australia is now the only state where the partial defense remains.