Skip to content
Snippets Groups Projects
Commit 697edfb1 authored by Philippe Canal's avatar Philippe Canal
Browse files

remove unnecessary (and vaguely redudant) code

git-svn-id: http://root.cern.ch/svn/root/trunk@33050 27541ba8-7e3a-0410-8455-c3a389f83636
parent 6040ac9c
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,6 @@ TFile *hsimple(Int_t get=0) ...@@ -53,7 +53,6 @@ TFile *hsimple(Int_t get=0)
printf("you must run the script in a directory with write access\n"); printf("you must run the script in a directory with write access\n");
return 0; return 0;
} }
(TFile*)gROOT->FindObject(filename); if (hfile) hfile->Close();
hfile = (TFile*)gROOT->FindObject(filename); if (hfile) hfile->Close(); hfile = (TFile*)gROOT->FindObject(filename); if (hfile) hfile->Close();
hfile = new TFile(filename,"RECREATE","Demo ROOT file with histograms"); hfile = new TFile(filename,"RECREATE","Demo ROOT file with histograms");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment