The currentVariant variable was only used for the DNP condition that was removed in commit 40205eb181. Remove the now-unused declarations to fix -Wunused-variable warnings.
40205eb181