From f4e5c6c32bfb7cf287c90726888e4cc838961404 Mon Sep 17 00:00:00 2001 From: vslokenb <108902248+vslokenb@users.noreply.github.com> Date: Thu, 27 Jul 2023 15:21:30 +0200 Subject: [PATCH] Update TopRecoilHook.h Fix suggested by PR 42313. Removes useless check. --- GeneratorInterface/Pythia8Interface/plugins/TopRecoilHook.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/GeneratorInterface/Pythia8Interface/plugins/TopRecoilHook.h b/GeneratorInterface/Pythia8Interface/plugins/TopRecoilHook.h index c07c84ef9e4c9..309089939325c 100644 --- a/GeneratorInterface/Pythia8Interface/plugins/TopRecoilHook.h +++ b/GeneratorInterface/Pythia8Interface/plugins/TopRecoilHook.h @@ -33,11 +33,7 @@ namespace Pythia8 { } // Destructor prints histogram. - ~TopRecoilHook() override { - if (doTopRecoil) - ; - delete wtCorr; - } + ~TopRecoilHook() override { delete wtCorr; } // Initialise. Only use hook for simple showers with recoilToColoured = off. bool initAfterBeams() override {