Disable the WordPress Admin bar without a plugin

Does the Admin bar in WP 3.x annoy you as well? Yeah, us too. Place the code below in your theme’s functions.php file and say goodbye to the Admin bar. This will not only disable the bar for any users, it also removes the preferences option in WordPress’ Admin area.