Remove unused local variable (energy)