How to Remove previous and next post links

Adding this PHP code to the functions.php of your wordpress theme will remove the previous and next post links within the wp_head of your wordpress theme.
( click code to copy )wordpress snippet : PHP
<>
remove_action(‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0 );