Remove Output of Primary Navigation Right Extras

If you use the Genesis Framework, you can remove the output of primary navigation right extras by using this snippet:

remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 );
remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 );