Eve Ensler said this quote

In the nineteenth century, girls who learned to develop orgasmic capacity by masturbation were regarded as medical problems. Often they were 'treated' or 'corrected' by amputation or cautery of the clitoris or 'miniature chastity belts,' sewing the vaginal lips together to put the clitoris out of reach, and even castration by surgical removal of the ovaries. But there are no references in the medical literature to the surgical removal of testicles or amputation of the penis to stop masturbation in boys.In the United States, the last recorded clitoridectomy for curing masturbation was performed in 1948-- on a five-year-old girl.