Fixed a unused method warning in release builds.