Remove unused and erroneous function, thanks @tschaub