]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/BamToolsIndex_p.cpp
Removed index cache mode
[bamtools.git] / src / api / internal / BamToolsIndex_p.cpp
index 567b5514428d515348282f1bddfbfed14a55f7a9..cdf3d10a597fe1697f504f80015f92c481a743b5 100644 (file)
@@ -53,7 +53,6 @@ BamToolsIndex::RaiiWrapper::~RaiiWrapper(void) {
 // ctor
 BamToolsIndex::BamToolsIndex(Internal::BamReaderPrivate* reader)
     : BamIndex(reader)
-    , m_cacheMode(BamIndex::LimitedIndexCaching)
     , m_blockSize(BamToolsIndex::DEFAULT_BLOCK_LENGTH)
     , m_inputVersion(0)
     , m_outputVersion(BTI_2_0) // latest version - used for writing new index files
@@ -538,12 +537,6 @@ void BamToolsIndex::Seek(const int64_t& position, const int& origin) {
         throw BamException("BamToolsIndex::Seek", "could not seek in BAI file");
 }
 
-// change the index caching behavior
-void BamToolsIndex::SetCacheMode(const BamIndex::IndexCacheMode& mode) {
-    m_cacheMode = mode;
-    // do nothing else here ? cache mode will be ignored from now on, most likely
-}
-
 void BamToolsIndex::SkipBlocks(const int& numBlocks) {
     Seek( numBlocks*BamToolsIndex::SIZEOF_BLOCK, SEEK_CUR );
 }