From 19e5240dc9a8b80cf0768fd2667b4e135e48ea68 Mon Sep 17 00:00:00 2001
From: Sergey Linev <S.Linev@gsi.de>
Date: Fri, 29 May 2020 14:22:43 +0200
Subject: [PATCH] remove unused includes from tests

---
 test/Aclock.cxx          | 1 -
 test/Hello.cxx           | 1 -
 test/bench.cxx           | 2 --
 test/fit/testFitPerf.cxx | 1 -
 test/guitest.cxx         | 1 -
 test/stress.cxx          | 3 +--
 test/stressLinear.cxx    | 5 ++---
 test/stressMathMore.cxx  | 4 +---
 test/stressRooFit.cxx    | 2 --
 test/stressRooStats.cxx  | 2 --
 test/threads.cxx         | 1 -
 test/tstring.cxx         | 6 +++---
 test/vvector.cxx         | 1 -
 13 files changed, 7 insertions(+), 23 deletions(-)

diff --git a/test/Aclock.cxx b/test/Aclock.cxx
index 9eec94cafa9..90b822a23b8 100644
--- a/test/Aclock.cxx
+++ b/test/Aclock.cxx
@@ -17,7 +17,6 @@
 //
 ///////////////////////////////////////////////////////////////////
 
-#include <TROOT.h>
 #include <TSystem.h>
 #include "Aclock.h"
 
diff --git a/test/Hello.cxx b/test/Hello.cxx
index 9141e358554..2a63048bdf4 100644
--- a/test/Hello.cxx
+++ b/test/Hello.cxx
@@ -22,7 +22,6 @@
 //
 ///////////////////////////////////////////////////////////////////
 
-#include <TROOT.h>
 #include <TSystem.h>
 #include "Hello.h"
 #include "TList.h"
diff --git a/test/bench.cxx b/test/bench.cxx
index 81332ef92ff..dcca3547ca3 100644
--- a/test/bench.cxx
+++ b/test/bench.cxx
@@ -24,8 +24,6 @@
 #include "TROOT.h"
 #include "TClonesArray.h"
 #include "TStopwatch.h"
-#include "TFile.h"
-#include "TTree.h"
 #include "TSystem.h"
 #include "TStreamerInfo.h"
 
diff --git a/test/fit/testFitPerf.cxx b/test/fit/testFitPerf.cxx
index 1cebfec5d92..b9a2862a226 100644
--- a/test/fit/testFitPerf.cxx
+++ b/test/fit/testFitPerf.cxx
@@ -2,7 +2,6 @@
 #include "TF1.h"
 #include "TF2.h"
 #include "TMath.h"
-#include "TSystem.h"
 #include "TRandom3.h"
 #include "TTree.h"
 #include "TROOT.h"
diff --git a/test/guitest.cxx b/test/guitest.cxx
index 5ab6cd53c06..fb8e2121b77 100644
--- a/test/guitest.cxx
+++ b/test/guitest.cxx
@@ -44,7 +44,6 @@
 #include <TRandom.h>
 #include <TSystem.h>
 #include <TSystemDirectory.h>
-#include <TEnv.h>
 #include <TFile.h>
 #include <TKey.h>
 #include <TGDockableFrame.h>
diff --git a/test/stress.cxx b/test/stress.cxx
index 16ff8861413..ad45a8d7a54 100644
--- a/test/stress.cxx
+++ b/test/stress.cxx
@@ -70,7 +70,7 @@
 //_____________________________batch only_____________________
 #ifndef __CINT__
 
-#include <stdlib.h>
+#include <cstdlib>
 #include <TROOT.h>
 #include <TSystem.h>
 #include <TH1.h>
@@ -82,7 +82,6 @@
 #include <TProfile.h>
 #include <TKey.h>
 #include <TCanvas.h>
-#include <TGraph.h>
 #include <TRandom.h>
 #include <TPostScript.h>
 #include <TNtuple.h>
diff --git a/test/stressLinear.cxx b/test/stressLinear.cxx
index bd5e94ef9d9..91f8f80bae9 100644
--- a/test/stressLinear.cxx
+++ b/test/stressLinear.cxx
@@ -88,13 +88,12 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
-#include <stdlib.h>
-#include <Riostream.h>
+#include <cstdlib>
+#include <iostream>
 #include <TSystem.h>
 #include <TFile.h>
 #include <TBenchmark.h>
 #include <TArrayD.h>
-#include <TF1.h>
 #include <TGraph.h>
 #include <TROOT.h>
 #include "TMath.h"
diff --git a/test/stressMathMore.cxx b/test/stressMathMore.cxx
index 8bd9f809ab4..357cea1e18c 100644
--- a/test/stressMathMore.cxx
+++ b/test/stressMathMore.cxx
@@ -33,12 +33,10 @@
 #include <iomanip>
 #include <limits>
 #include <cmath>
-#include <stdlib.h>
+#include <cstdlib>
 #include "TBenchmark.h"
 #include "TROOT.h"
 #include "TRandom3.h"
-#include "TSystem.h"
-#include "TF1.h"
 
 using namespace ROOT::Math;
 
diff --git a/test/stressRooFit.cxx b/test/stressRooFit.cxx
index 63a21fbcb2d..f24763d840f 100644
--- a/test/stressRooFit.cxx
+++ b/test/stressRooFit.cxx
@@ -9,8 +9,6 @@
 #include "TLine.h"
 #include "TFile.h"
 #include "TClass.h"
-#include "TCanvas.h"
-#include "TH1.h"
 #include "TBenchmark.h"
 #include "RooGlobalFunc.h"
 #include "RooMsgService.h"
diff --git a/test/stressRooStats.cxx b/test/stressRooStats.cxx
index 099cc728abc..d9affd7191f 100644
--- a/test/stressRooStats.cxx
+++ b/test/stressRooStats.cxx
@@ -17,8 +17,6 @@
 #include "TLine.h"
 #include "TFile.h"
 #include "TClass.h"
-#include "TCanvas.h"
-#include "TH1.h"
 #include "TF1.h"
 #include "TBenchmark.h"
 
diff --git a/test/threads.cxx b/test/threads.cxx
index 3df42dcb12b..5da3bcf31d0 100644
--- a/test/threads.cxx
+++ b/test/threads.cxx
@@ -1,7 +1,6 @@
 #include "TApplication.h"
 #include "TObject.h"
 #include "TH1.h"
-#include "TMath.h"
 #include "TCanvas.h"
 #include "TRandom.h"
 #include "TThread.h"
diff --git a/test/tstring.cxx b/test/tstring.cxx
index d7b0a1be932..d1e73cfaa3e 100644
--- a/test/tstring.cxx
+++ b/test/tstring.cxx
@@ -1,13 +1,13 @@
 // @(#)root/test:$Id$
 // Author: Fons Rademakers   19/08/96
 
-#include <stdlib.h>
+#include <cstdlib>
+#include <iostream>
+#include <fstream>
 
-#include "Riostream.h"
 #include "TString.h"
 #include "TRegexp.h"
 #include "TPRegexp.h"
-#include "TSystem.h"
 
 
 void Ok(int i, int b)
diff --git a/test/vvector.cxx b/test/vvector.cxx
index 9190be0c6c3..776a3d092c5 100644
--- a/test/vvector.cxx
+++ b/test/vvector.cxx
@@ -22,7 +22,6 @@
 //_____________________________batch only_____________________
 #ifndef __CINT__
 
-#include "TROOT.h"
 #include "TFile.h"
 #include "Riostream.h"
 #include "TVectorD.h"
-- 
GitLab