mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove diabled debugging output in subsurfacewebservices.cpp
Why bother with commented out code? Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8677d1f325
commit
9febfdd084
1 changed files with 1 additions and 8 deletions
|
@ -25,7 +25,6 @@
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include <qdesktopservices.h>
|
#include <qdesktopservices.h>
|
||||||
#include <QShortcut>
|
#include <QShortcut>
|
||||||
#include <QDebug>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <zip.h>
|
#include <zip.h>
|
||||||
|
|
||||||
|
@ -175,15 +174,12 @@ static DiveListResult parseDiveLogsDeDiveList(const QByteArray &xmlData)
|
||||||
if (nameCmp(reader, "DiveDates") != 0) {
|
if (nameCmp(reader, "DiveDates") != 0) {
|
||||||
if (nameCmp(reader, "Login") == 0) {
|
if (nameCmp(reader, "Login") == 0) {
|
||||||
QString status = reader.readElementText();
|
QString status = reader.readElementText();
|
||||||
// qDebug() << "Login status:" << status;
|
|
||||||
|
|
||||||
// Note: there has to be a better way to determine a successful login...
|
// Note: there has to be a better way to determine a successful login...
|
||||||
if (status == "failed") {
|
if (status == "failed") {
|
||||||
result.errorCondition = "Login failed";
|
result.errorCondition = "Login failed";
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// qDebug() << "Skipping" << reader.name();
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -191,12 +187,9 @@ static DiveListResult parseDiveLogsDeDiveList(const QByteArray &xmlData)
|
||||||
// process <DiveDates>
|
// process <DiveDates>
|
||||||
seenDiveDates = true;
|
seenDiveDates = true;
|
||||||
while (reader.readNextStartElement()) {
|
while (reader.readNextStartElement()) {
|
||||||
if (nameCmp(reader, "date") != 0) {
|
if (nameCmp(reader, "date") != 0)
|
||||||
// qDebug() << "Skipping" << reader.name();
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
auto id = reader.attributes().value("divelogsId");
|
auto id = reader.attributes().value("divelogsId");
|
||||||
// qDebug() << "Found" << reader.name() << "with id =" << id;
|
|
||||||
if (!id.isEmpty()) {
|
if (!id.isEmpty()) {
|
||||||
result.idList += id.toLatin1();
|
result.idList += id.toLatin1();
|
||||||
result.idList += ',';
|
result.idList += ',';
|
||||||
|
|
Loading…
Add table
Reference in a new issue