changeset 172:30d59e1e4232 structure

Minor tidy
author Chris Cannam
date Fri, 06 Feb 2015 18:09:18 +0000
parents bb4507f24dc9
children eeed3498fe96
files src/Finder.cpp
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/Finder.cpp	Fri Feb 06 13:07:30 2015 +0000
+++ b/src/Finder.cpp	Fri Feb 06 18:09:18 2015 +0000
@@ -57,17 +57,9 @@
 bool
 Finder::getBestRowCost(int row, int &bestCol, double &min)
 {
-    cerr << "Finder " << this << "::getBestRowCost(" << row << ")" << endl;
-    if (!m_m->isRowAvailable(row)) {
-        cerr << "row not available: " << row << endl;
-        return false;
-    }
+    if (!m_m->isRowAvailable(row)) return false;
     pair<int, int> colRange = m_m->getColRange(row);
-    if (colRange.first >= colRange.second) {
-        cerr << "row " << row << " has invalid col range " << colRange.first
-             << " -> " << colRange.second << endl;
-        return false;
-    }
+    if (colRange.first >= colRange.second) return false;
     for (int index = colRange.first; index < colRange.second; index++) {
         double tmp = m_m->getNormalisedPathCost(row, index);
         if (index == colRange.first || tmp < min) {