Adding that function to your child theme/custom plugin/Code Snippets plugin (including the function_exists wrapper) will allow you to make changes to it.
By overwriting the generate_comment() function, you can remove/add/change whatever you like.
So you would paste that entire function highlighted into your child theme functions.php/custom plugin/Code Snippets plugin, then make your adjustments.