Remove unused functions. They weren't documented and their behaviour isn't tested.
Clean up.