[MAINT] Fix unused variable warnings.

As the title says.