CLN: Remove unused code
Some more unused code. Most of them are not detected by `vulture` but only visible on the editor through Pylance, so I'm not quite sure how to detect them systematically. 
Thanks @tqa236 