Fixed a warning about an unused function.