From b9a212ac5a9ee6da33b41446d2da50b66b320985 Mon Sep 17 00:00:00 2001
From: Oksana Shadura <oksana.shadura@cern.ch>
Date: Wed, 23 May 2018 15:31:07 +0200
Subject: [PATCH] Removing obsolete code from TFile(compression algorithm and
 level of StreamerInfo should the same as in TFile)

---
 io/io/src/TFile.cxx | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/io/io/src/TFile.cxx b/io/io/src/TFile.cxx
index 4f86182b869..408a1ce88d0 100644
--- a/io/io/src/TFile.cxx
+++ b/io/io/src/TFile.cxx
@@ -3709,11 +3709,7 @@ void TFile::WriteStreamerInfo()
       // Only add the list of rules if we have something to say.
       list.Add(&listOfRules);
    }
-
-   // always write with compression on
-   Int_t compress = fCompress;
-   fCompress = 1;
-
+   
    //free previous StreamerInfo record
    if (fSeekInfo) MakeFree(fSeekInfo,fSeekInfo+fNbytesInfo-1);
    //Create new key
@@ -3723,10 +3719,7 @@ void TFile::WriteStreamerInfo()
    fNbytesInfo = key.GetNbytes();
    SumBuffer(key.GetObjlen());
    key.WriteFile(0);
-
    fClassIndex->fArray[0] = 0;
-   fCompress = compress;
-
    list.RemoveLast(); // remove the listOfRules.
 }
 
-- 
GitLab