diff --git a/source/framework/sensitivity/src/TRestSensitivity.cxx b/source/framework/sensitivity/src/TRestSensitivity.cxx index daecdac5e..b7b548729 100644 --- a/source/framework/sensitivity/src/TRestSensitivity.cxx +++ b/source/framework/sensitivity/src/TRestSensitivity.cxx @@ -194,7 +194,6 @@ void TRestSensitivity::ExportAveragedCurve(std::string fname) { } void TRestSensitivity::ExportCurve(std::string fname, int n = 0) { - std::vector curve = GetCurve(n); if (curve.empty()) return; @@ -396,7 +395,6 @@ std::vector> TRestSensitivity::GetLevelCurves(const std::v } TCanvas* TRestSensitivity::DrawCurves() { - if (fCanvas != NULL) { delete fCanvas; fCanvas = NULL; @@ -478,7 +476,6 @@ legend->Draw(); } TCanvas* TRestSensitivity::DrawLevelCurves() { - if (fCanvas != NULL) { delete fCanvas; fCanvas = NULL;