]> git.donarmstrong.com Git - bamtools.git/commitdiff
Removed debug statements that snuck into last commit
authorderek <derekwbarnett@gmail.com>
Wed, 27 Apr 2011 06:22:30 +0000 (02:22 -0400)
committerderek <derekwbarnett@gmail.com>
Wed, 27 Apr 2011 06:22:30 +0000 (02:22 -0400)
src/api/internal/BamStandardIndex_p.cpp
src/api/internal/BamToolsIndex_p.cpp

index 1279f894bf7f1767a2d69a18e7477df50b41cbc3..d29c3c5c42aad93690a6b624bb36a6a87d9b7dab 100644 (file)
@@ -247,8 +247,6 @@ void BamStandardIndex::CloseFile(void) {
 // builds index from associated BAM file & writes out to index file
 bool BamStandardIndex::Create(void) {
 
-    cerr << "Creating BAI..." << endl;
-
     // return false if BamReader is invalid or not open
     if ( m_reader == 0 || !m_reader->IsOpen() ) {
         cerr << "BamStandardIndex ERROR: BamReader is not open"
@@ -256,8 +254,6 @@ bool BamStandardIndex::Create(void) {
         return false;
     }
 
-    cerr << "BAM file is open" << endl;
-
     // rewind BamReader
     if ( !m_reader->Rewind() ) {
         cerr << "BamStandardIndex ERROR: could not rewind BamReader to create index"
@@ -265,8 +261,6 @@ bool BamStandardIndex::Create(void) {
         return false;
     }
 
-    cerr << "BAM file is rewound" << endl;
-
     // open new index file (read & write)
     string indexFilename = m_reader->Filename() + Extension();
     if ( !OpenFile(indexFilename, "w+b") ) {
index 7c9c4be47ed4d6f4f1e1887a9299bb7ac383a7e0..05d43275e1c307372481eb559004a741ff81fa88 100644 (file)
@@ -435,9 +435,8 @@ bool BamToolsIndex::LoadFileSummary(void) {
     bool loadedOk = true;
     BtiFileSummary::iterator summaryIter = m_indexFileSummary.begin();
     BtiFileSummary::iterator summaryEnd  = m_indexFileSummary.end();
-    for ( ; summaryIter != summaryEnd; ++summaryIter ) {
+    for ( ; summaryIter != summaryEnd; ++summaryIter )
         loadedOk &= LoadReferenceSummary(*summaryIter);
-    }
 
     // return result
     return loadedOk;