diff --git a/GeneratorInterface/Pythia8Interface/plugins/PowhegHooksBB4L.h b/GeneratorInterface/Pythia8Interface/plugins/PowhegHooksBB4L.h index f0c5274f42778..781d36c87209a 100644 --- a/GeneratorInterface/Pythia8Interface/plugins/PowhegHooksBB4L.h +++ b/GeneratorInterface/Pythia8Interface/plugins/PowhegHooksBB4L.h @@ -180,10 +180,8 @@ namespace Pythia8 { // find the resonance the radiator originates from int iRes = e[iRadBef].mother1(); - int distance = 1; while (iRes > 0 && (abs(e[iRes].id()) != 6 && abs(e[iRes].id()) != 24)) { iRes = e[iRes].mother1(); - distance++; } if (iRes == 0) { infoPtr->errorMsg(