Turn Off Feeds

Most of my websites are not structured as blogs and I needed a way to turn off the RSS and Atom feeds to avoid confusion. Google turns up lots of different approaches to this but the tidiest in my opinion is to modify the theme by adding a few lines to functions.php as follows: