From 285a268e8149fdf3b211d307a2fd2a6baa28eebd Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Wed, 28 Aug 2013 15:02:49 +0200
Subject: [PATCH] Finally remove TFile::UseCache() which was marked for removal
 by v5-32-00.

---
 io/io/inc/TFile.h     |  1 -
 io/io/src/TFile.cxx   | 11 -----------
 io/sql/inc/TSQLFile.h |  1 -
 io/xml/inc/TXMLFile.h |  1 -
 4 files changed, 14 deletions(-)

diff --git a/io/io/inc/TFile.h b/io/io/inc/TFile.h
index c4d2c6b7527..38eed4c2c86 100644
--- a/io/io/inc/TFile.h
+++ b/io/io/inc/TFile.h
@@ -244,7 +244,6 @@ public:
    virtual void        ShowStreamerInfo();
    virtual Int_t       Sizeof() const;
    void                SumBuffer(Int_t bufsize);
-   virtual void        UseCache(Int_t maxCacheSize = 10, Int_t pageSize = 0);
    virtual Bool_t      WriteBuffer(const char *buf, Int_t len);
    virtual Int_t       Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0);
    virtual Int_t       Write(const char *name=0, Int_t opt=0, Int_t bufsiz=0) const;
diff --git a/io/io/src/TFile.cxx b/io/io/src/TFile.cxx
index f7460bf8964..0b8041cf33a 100644
--- a/io/io/src/TFile.cxx
+++ b/io/io/src/TFile.cxx
@@ -2143,17 +2143,6 @@ void TFile::SumBuffer(Int_t bufsize)
    fSum2Buffer += bufsize*bufsize;
 }
 
-//_______________________________________________________________________
-void TFile::UseCache(Int_t /*maxCacheSize*/, Int_t /*pageSize*/)
-{
-   // Dummy function kept for backward compatibility.
-   // The read  cache is now managed by TFileCacheRead
-   // The write cache is now managed by TFileCacheWrite
-   // Both caches are created automatically by the system.
-
-   Obsolete("UseCache", "v5-30-00", "v5-32-00");
-}
-
 //______________________________________________________________________________
 Int_t TFile::Write(const char *, Int_t opt, Int_t bufsiz)
 {
diff --git a/io/sql/inc/TSQLFile.h b/io/sql/inc/TSQLFile.h
index a5457d4f50a..7683fb6699a 100644
--- a/io/sql/inc/TSQLFile.h
+++ b/io/sql/inc/TSQLFile.h
@@ -264,7 +264,6 @@ public:
    virtual void      SetEND(Long64_t) {}
    virtual Int_t     Sizeof() const { return 0; }
 
-   virtual void      UseCache(Int_t = 10, Int_t = 0) {}
    virtual Bool_t    WriteBuffer(const char*, Int_t) { return kFALSE; }
    virtual Int_t     Write(const char* =0, Int_t=0, Int_t=0) { return 0; }
    virtual Int_t     Write(const char* =0, Int_t=0, Int_t=0) const { return 0; }
diff --git a/io/xml/inc/TXMLFile.h b/io/xml/inc/TXMLFile.h
index fc48d211d66..cfc2e6b658d 100644
--- a/io/xml/inc/TXMLFile.h
+++ b/io/xml/inc/TXMLFile.h
@@ -96,7 +96,6 @@ public:
    virtual void      SetEND(Long64_t) {}
    virtual Int_t     Sizeof() const { return 0; }
 
-   virtual void      UseCache(Int_t = 10, Int_t = 0) {}
    virtual Bool_t    WriteBuffer(const char*, Int_t) { return kFALSE; }
    virtual Int_t     Write(const char* =0, Int_t=0, Int_t=0) { return 0; }
    virtual Int_t     Write(const char* =0, Int_t=0, Int_t=0) const { return 0; }
-- 
GitLab