DEV: Remove useless code (PR #10130)

This code snippet does not do anything useful.

GitHub

“If you liked it, you should have put a test on it!”

https://www.youtube.com/watch?v=4m1EFMoRFvY