Is this the right way to handle things?

He wasn't really my boyfriend but we were "involved". He used me for my body. I found out but I didn't text him that I knew. I left the conversation as this ans never talked to him again. Is this too childish? Also I was kind of drunk bc he hurt me.