Like Atreides said, it was more part of generally throwing out of the entire tsarist legal system as illegitimate. But I still think it counts for something that at least from 1921 to 1953, gay people were relatively legally safe in the USSR at a time when the UK was still carrying out chemical castration.
Edit: But maybe I've been misinformed, see @Mardoniush 's more in-depth historical analysis above.
Like Atreides said, it was more part of generally throwing out of the entire tsarist legal system as illegitimate. But I still think it counts for something that at least from 1921 to 1953, gay people were relatively legally safe in the USSR at a time when the UK was still carrying out chemical castration.
Edit: But maybe I've been misinformed, see @Mardoniush 's more in-depth historical analysis above.