You’re safe to remove that code from your child theme. Just be sure to leave this part:
<?php
/**
* GeneratePress child theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
That being said, that code definitely shouldn’t be causing any issues. It shouldn’t actually do anything at all unless you’re using a RTL language.