Different kind of masturbating.

So ever since I was little, like 13 ish I would cross my legs and make my thighs and vagina rub together and do a rocking back and forth motion. It's what feels the best. So I would sit on a bed or couch and do it. I even would do it at school when I would go pee sometimes ( I was kinda addicted I guess) don't really do it anymore. But i was just wondering if doing that would have done any harm to my vagina? If I did it on a public toilet with no clothes on could I get any stds or gential warts from the toilet?