]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/api/internal/BamStandardIndex_p.cpp
Removed index cache mode
[bamtools.git] / src / api / internal / BamStandardIndex_p.cpp
index c492899a20167d4924be71ff25d18c0b55fc0a18..8b23f749b43ca4af6203afa857ea58ea009ed069 100644 (file)
@@ -62,7 +62,6 @@ BamStandardIndex::RaiiWrapper::~RaiiWrapper(void) {
 // ctor
 BamStandardIndex::BamStandardIndex(Internal::BamReaderPrivate* reader)
     : BamIndex(reader)
-    , m_cacheMode(BamIndex::LimitedIndexCaching)
     , m_bufferLength(0)
 {
      m_isBigEndian = BamTools::SystemIsBigEndian();
@@ -762,12 +761,6 @@ void BamStandardIndex::Seek(const int64_t& position, const int& origin) {
         throw BamException("BamStandardIndex::Seek", "could not seek in BAI file");
 }
 
-// change the index caching behavior
-void BamStandardIndex::SetCacheMode(const BamIndex::IndexCacheMode& mode) {
-    m_cacheMode = mode;
-    // do nothing else here ? cache mode will be ignored from now on, most likely
-}
-
 void BamStandardIndex::SkipBins(const int& numBins) {
     uint32_t binId;
     int32_t numAlignmentChunks;