changeset 1494:0d4f1fcad97a

Remove some debug output
author Chris Cannam
date Thu, 09 Aug 2018 16:45:17 +0100
parents 71202259002d
children 6965c83c8fa7
files data/fileio/test/CSVStreamWriterTest.h data/model/DenseTimeValueModel.cpp
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/test/CSVStreamWriterTest.h	Mon Jun 25 14:12:27 2018 +0100
+++ b/data/fileio/test/CSVStreamWriterTest.h	Thu Aug 09 16:45:17 2018 +0100
@@ -256,7 +256,7 @@
         regions.addSelection({0, 2});
         regions.addSelection({4, 6});
         regions.addSelection({16, 18});
-        qDebug("End frame: %lld", (long long int)mwm.getEndFrame());
+//        qDebug("End frame: %lld", (long long int)mwm.getEndFrame());
         const std::string expectedOutput {
           "0,0,0\n"
           "1,0,0\n"
@@ -278,7 +278,7 @@
         QVERIFY( reporter.getCallCount() == 3 );
         const std::vector<int> expectedCallLog { 33, 66, 100 };
         QVERIFY( reporter.getPercentageLog() == expectedCallLog );
-        qDebug("%s", oss.str().c_str());
+//        qDebug("%s", oss.str().c_str());
         QVERIFY( oss.str() == expectedOutput );
     }
 
@@ -300,15 +300,15 @@
             notes.addPoint({startFrame, note, 4, 1.f, ""});
             startFrame += 8;
         }
-        qDebug("Create Expected Output\n");
+//        qDebug("Create Expected Output\n");
 
         // NB. removed end line break
         const auto expectedOutput = notes.toDelimitedDataString(",").trimmed();
 
         StubReporter reporter { []() -> bool { return false; } };
         std::ostringstream oss;
-        qDebug("End frame: %lld", (long long int)notes.getEndFrame());
-        qDebug("Write streaming\n");
+//        qDebug("End frame: %lld", (long long int)notes.getEndFrame());
+//        qDebug("Write streaming\n");
         const auto wroteSparseModel = CSVStreamWriter::writeInChunks(
             oss,
             notes,
@@ -318,8 +318,8 @@
             2
         );
 
-        qDebug("\n%s\n", expectedOutput.toLocal8Bit().data());
-        qDebug("\n%s\n", oss.str().c_str());
+//        qDebug("\n%s\n", expectedOutput.toLocal8Bit().data());
+//        qDebug("\n%s\n", oss.str().c_str());
         QVERIFY( wroteSparseModel == true );
         QVERIFY( oss.str() == expectedOutput.toStdString() );
     }
--- a/data/model/DenseTimeValueModel.cpp	Mon Jun 25 14:12:27 2018 +0100
+++ b/data/model/DenseTimeValueModel.cpp	Thu Aug 09 16:45:17 2018 +0100
@@ -33,7 +33,7 @@
 {
     int ch = getChannelCount();
 
-    cerr << "f0 = " << f0 << ", f1 = " << f1 << endl;
+//    cerr << "f0 = " << f0 << ", f1 = " << f1 << endl;
 
     if (f1 <= f0) return "";