More double const pointer fix. Clean up unused variable.