From ed1f3508362e1849439bbdbedfe0bf5f4f732721 Mon Sep 17 00:00:00 2001 From: Roman Moravcik Date: Fri, 4 Mar 2011 09:21:41 +0100 Subject: [PATCH] Removed debug messages. --- src/medarddownloader.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/medarddownloader.cpp b/src/medarddownloader.cpp index 6e8de0c..07dc798 100644 --- a/src/medarddownloader.cpp +++ b/src/medarddownloader.cpp @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include #include #include #include @@ -201,16 +200,12 @@ void MedardDownloader::tryDownloadImageAgain() void MedardDownloader::clearDownloadRequest() { - qDebug() << "clearDownloadRequest: m_reply=" << m_reply; - delete m_reply; m_reply = 0; } void MedardDownloader::downloadImageFinished() { - qDebug() << "downloadImageFinished: m_reply=" << m_reply; - QByteArray picture = m_reply->readAll(); if (picture.isNull() || picture.size() <= 0) @@ -239,7 +234,6 @@ void MedardDownloader::downloadImageFinished() croped.save(filename, "png"); } - qDebug() << "downloadImageFinished: downloadFinished=" << filename; emit downloadFinished(filename, forecastDate()); QTimer::singleShot(0, this, SLOT(clearDownloadRequest())); @@ -253,8 +247,6 @@ void MedardDownloader::downloadImageError(QNetworkReply::NetworkError /* code */ void MedardDownloader::downloadImage() { - qDebug() << "downloadImage: retry=" << m_retryCounter << "date:" << m_forecastInitialDate.toString("dd.MM.yyyy hh:mm"); - if (m_forecastInitialDateCode.isNull()) { retrieveForecastInitialDate(); tryDownloadImageAgain(); @@ -269,8 +261,6 @@ void MedardDownloader::downloadImage() .arg(QString().number(m_forecastDateOffset)); if (isDownloaded(filename)) { - qDebug() << "downloadImage: downloadFinished=" << filename; - emit downloadFinished(filename, forecastDate()); return; } @@ -315,8 +305,6 @@ int MedardDownloader::maxForecastDateOffset() void MedardDownloader::retrieveForecastInitialDateFinished() { - qDebug() << "retrieveForecastInitialDateFinished: m_reply=" << m_reply; - QByteArray data = m_reply->readAll(); int index1 = data.indexOf("var fcst_initDatestamp=\"", 0); @@ -341,13 +329,10 @@ void MedardDownloader::retrieveForecastInitialDateFinished() void MedardDownloader::retrieveForecastInitialDateError(QNetworkReply::NetworkError /* code */) { - qDebug() << "retrieveForecastInitialDateError: m_reply=" << m_reply; } void MedardDownloader::retrieveForecastInitialDate() { - qDebug() << "retrieveForecastInitialDate: m_reply=" << m_reply; - QString serverUrl = QString(MEDARD_URL); QUrl url(serverUrl); -- 1.7.9.5