Fix spelling mistake, remove vestigial code