CLN: Remove unused code
Hi Marc, I think it's indeed unrelated and it's also beyond my understanding to debug it as well.

Just FYI, Matthew is debugging it here: https://github.com/pandas-dev/pandas/pull/57845 Thanks. Yes, I meant to have a look to make sure it's unrelated. Thanks @tqa236 