Clean up unused variable warning in release build.