Quoted By:
You don't.
No amount of sex or masturbation will ever cure you of the horny. It is a constant and ever present ailment that will progressively get worse if left unchecked. When you try to not be horny you'll find that your own body fails you. It betrays you because even though you have mentally stopped thinking about it you can't stop your body from feeling it.
That feeling will propel you in another direction and you may form some kind of "non-sexualized" fetish for something like floor tiles that at its core sates your need for something sexualized.
You can quit porn, never think horny thoughts and never touch your dick but you can't escape the horny.
All you can do is try to be aware and control your urges so as to not let them control your entire life.