Remove unused function, thanks @nirnirs