Remove unused code (thanks @peter1000)