Once again remove debug output.

Oops again.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-11-15 13:17:38 +09:00
parent cec30c27d9
commit 66f5f32f11

View file

@ -1197,9 +1197,7 @@ int DivePlannerPointsModel::addStop(int milimeters, int minutes, int o2, int he,
}
}
if (o2 == -1) {
qDebug() << "default Gas";
if (row > 0) {
qDebug() << "from left";
o2 = divepoints.at(row - 1).o2;
he = divepoints.at(row - 1).he;
} else {
@ -1208,11 +1206,9 @@ int DivePlannerPointsModel::addStop(int milimeters, int minutes, int o2, int he,
// first check to the right, then to the left, but if there's nothing,
// we simply default to AIR
if (row < divepoints.count()) {
qDebug() << "from right";
o2 = divepoints.at(row).o2;
he = divepoints.at(row).he;
} else {
qDebug() << "have to create tank of AIR" << row << divepoints.count();
o2 = O2_IN_AIR;
if (!addGas(o2, 0))
qDebug("addGas failed"); // FIXME add error propagation