fix(src): remove unused variables.

 Fixes #8142.