Don’t kid yourself. Masturbation was alive and well long before porn became mainstream and easy to acquire.
Porn, or should I say, erotic art, has been around longer than the internet, movies, and photographs have been. Even classical artists admitted to having erotic intentions with some of the paintings and the sculptures that were done.
The pope at one time even censored the statues within Vatican city, considering them erotic.