Remove unused variables to decrease the number of warnings in compilation.