It is. It checks whether it’s an RTL site, if it is, it will enqueue the rtl.css file in GeneratePress. For some reason, WordPress doesn’t do this by default if a child theme is active.
You can go ahead and remove the function if you have no need for the file 🙂