From eaf7923bab5ae7395ccf7b0593a2c6d421c0c30d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mikko=20Kein=C3=A4nen?= Date: Fri, 12 Nov 2010 23:54:11 +0200 Subject: [PATCH] Removed non needed variable and commented out debug messages. --- src/utils/unziphelper.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/utils/unziphelper.cpp b/src/utils/unziphelper.cpp index d2d385b..787ea60 100644 --- a/src/utils/unziphelper.cpp +++ b/src/utils/unziphelper.cpp @@ -44,7 +44,7 @@ QMap UnzipHelper::listContents(const QString filePath, throw new EmuFrontException(tr("Couldn't read file %1.").arg(filePath)); } - Setup *sup = fp->getSetup(); + //Setup *sup = fp->getSetup(); QMap fileList; QString command; @@ -53,7 +53,7 @@ QMap UnzipHelper::listContents(const QString filePath, command.append("\""); command.append(filePath); command.append("\""); - qDebug() << command; + //qDebug() << command; start(command); // TODO: slot(s) for (start and) error signal(s) bool procOk = waitForFinished(); @@ -62,7 +62,7 @@ QMap UnzipHelper::listContents(const QString filePath, } QString err = readAllStandardError(); QString msg = readAllStandardOutput(); - qDebug() << "\nErrors:\n" << err << "\nMessage:\n" << msg; + //qDebug() << "\nErrors:\n" << err << "\nMessage:\n" << msg; /* @@ -122,28 +122,28 @@ QMap UnzipHelper::listContents(const QString filePath, ); foreach(QString ln, lines) { //if (!test.exactMatch(ln)) continue; - qDebug() << "Current line is " << ln; + //qDebug() << "Current line is " << ln; int pos = regExEntries.indexIn(ln); if (pos == -1) { - qDebug() << "Regex didn't match any entries."; + //qDebug() << "Regex didn't match any entries."; continue; // > no entries } entries = regExEntries.capturedTexts(); - qDebug() << "Got " << entries.count() << " entries."; + //qDebug() << "Got " << entries.count() << " entries."; if (entries.count() < 4) continue; QString filename = entries[3]; QString checksum = entries[2]; QString lenStr = entries[1]; bool ok; int length = lenStr.toInt(&ok); - qDebug() << "Filename is " << filename << " checksum " - << checksum << " length " << length; + /*qDebug() << "Filename is " << filename << " checksum " + << checksum << " length " << length;*/ if (!ok) continue; MediaImage *effo = new MediaImage(filename, checksum, length); fileList[checksum] = effo; } - qDebug() << "File list has " << fileList.size() << " entries."; + //qDebug() << "File list has " << fileList.size() << " entries."; return fileList; } @@ -172,7 +172,7 @@ int UnzipHelper::extractAll(QString filePath, QString targetPath) command.append("\""); command.append(" -d "); command.append(targetPath); - qDebug() << "Starting unzip command: " << command; + //qDebug() << "Starting unzip command: " << command; start(command); bool procOk = waitForFinished(); // TODO: set timeout, now using default 30000ms if (!procOk) { -- 1.7.9.5