coverty fix for dead code
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Jul 2011 07:44:42 +0000 (07:44 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 1 Jul 2011 07:44:42 +0000 (07:44 +0000)
PWG4/JetTasks/AliPWG4HighPtQAMC.cxx

index 6737e20..5c6c75c 100644 (file)
@@ -601,7 +601,6 @@ void AliPWG4HighPtQAMC::Exec(Option_t *) {
       track = esdtrack;
     
     if(!track) {
-      if(fTrackType==1 || fTrackType==2) delete track;
       continue;
     }
 
@@ -685,7 +684,6 @@ void AliPWG4HighPtQAMC::Exec(Option_t *) {
        else if(fTrackType==2) {
          track2 = AliESDtrackCuts::GetTPCOnlyTrack(fESD,esdtrack2->GetID());
          if(!track2) { 
-           delete track2;
            continue;
          }
          AliExternalTrackParam exParam2;
@@ -699,7 +697,6 @@ void AliPWG4HighPtQAMC::Exec(Option_t *) {
        else
          track2 = esdtrack2;
        if(!track2) {
-         if(fTrackType==1 || fTrackType==2) delete track2;
          continue;
        }