removed dead code in PathEnergyAnalysis