Did I do the right thing by cutting this girl off my life?

Basically, I had a crush on this girl for 8 years. Back in 7th grade she pretended to like me to make fun of me. She giggled about it with her friends. Move along 7 years later, she found out I still like her. She kept leading me on by asking me to take my shirt off for her but seemed to make fun of me about it. She would troll with me about me liking her. Later on I see that she texts her friend saying "I would say no" if I asked her out. I found out that she made fun of me again and decided to block her number and completely break ties with her because she taunted me again. Did I do the right thing? Should I have confronted her before I cut ties with her?
Did I do the right thing by cutting this girl off my life?
1
2
Add Opinion