Remove unused variables in command-update.