# # # patch "guitone/src/util/DiffParser.cpp" # from [561160a37a57636159d2300bc72d80205d470bfc] # to [3d8de18d24695935c0c1b002544f6f4706c496c3] # ============================================================ --- guitone/src/util/DiffParser.cpp 561160a37a57636159d2300bc72d80205d470bfc +++ guitone/src/util/DiffParser.cpp 3d8de18d24695935c0c1b002544f6f4706c496c3 @@ -127,8 +127,6 @@ void DiffParser::parse(const QString & i continue; } - qDebug("Processing line %s", qPrintable(line)); - curGroup = new DiffLineGroup(); curGroup->changeLen = 1; curGroup->contents.push_back(line.mid(1)); @@ -141,8 +139,6 @@ void DiffParser::parse(const QString & i lastChar = lines.at(i-1).at(0); } - qDebug("Last char %c", lastChar.toLatin1()); - // check for any last group if (lastChar == ' ') { @@ -208,9 +204,6 @@ void DiffParser::parse(const QString & i continue; } - qDebug("Current Group: %s", qPrintable(curGroup->contents.join("\n"))); - qDebug("Next line: %s", qPrintable(lines.at(i+1))); - // if we either reached the last line or the next line is a // unchanged line, insert dummy group DiffLineGroup * dummy = new DiffLineGroup(); @@ -221,16 +214,6 @@ void DiffParser::parse(const QString & i curGroup->friendGroup = dummy; curHunk->lineGroups.push_back(dummy); } - - qDebug("Diff hunks: %d", curDiff->hunks.size()); - for (int i=0, j=curDiff->hunks.size(); ihunks.at(i)->lineGroups.size()); - for (int k=0, l=curDiff->hunks.at(i)->lineGroups.size(); khunks.at(i)->lineGroups.at(k)->state, curDiff->hunks.at(i)->lineGroups.at(k)->changeLen); - } - } } Diff* DiffParser::getDiff(const QString & filename)