Skip to content
Snippets Groups Projects
Commit e70131ac authored by Olivier Couet's avatar Olivier Couet
Browse files

- In SavePrimitive the flag "invalid" was always FALSE.

  The 2 tests if (invalid) were never true.
  (dead code seen by coverity)


git-svn-id: http://root.cern.ch/svn/root/trunk@31704 27541ba8-7e3a-0410-8455-c3a389f83636
parent 9d72219e
Branches
Tags
No related merge requests found
...@@ -1608,8 +1608,6 @@ void TCanvas::SavePrimitive(ostream &out, Option_t *option /*= ""*/) ...@@ -1608,8 +1608,6 @@ void TCanvas::SavePrimitive(ostream &out, Option_t *option /*= ""*/)
{ {
// Save primitives in this canvas in C++ macro file with GUI. // Save primitives in this canvas in C++ macro file with GUI.
Bool_t invalid = kFALSE;
// Write canvas options (in $TROOT or $TStyle) // Write canvas options (in $TROOT or $TStyle)
if (gStyle->GetOptFit()) { if (gStyle->GetOptFit()) {
out<<" gStyle->SetOptFit(1);"<<endl; out<<" gStyle->SetOptFit(1);"<<endl;
...@@ -1642,9 +1640,7 @@ void TCanvas::SavePrimitive(ostream &out, Option_t *option /*= ""*/) ...@@ -1642,9 +1640,7 @@ void TCanvas::SavePrimitive(ostream &out, Option_t *option /*= ""*/)
// Now recursively scan all pads of this canvas // Now recursively scan all pads of this canvas
cd(); cd();
if (invalid) SetName("c1");
TPad::SavePrimitive(out,option); TPad::SavePrimitive(out,option);
if (invalid) SetName(" ");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment