From 8177dd4dc34be2f9181b4e8dcc3de64ae7237e4d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 26 Mar 2020 12:15:20 -0700 Subject: [PATCH] cleanup: remove dead code Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 86f199ae7..ed0643952 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -94,25 +94,14 @@ static void appendTextToLogStandalone(const char *text) // show the git progress in the passive notification area extern "C" int gitProgressCB(const char *text) { - static QElapsedTimer timer; - static qint64 lastTime = 0; static QMLManager *self; if (!self) self = QMLManager::instance(); - if (!timer.isValid()) { - timer.restart(); - lastTime = 0; - } if (self) { - qint64 elapsed = timer.elapsed(); self->appendTextToLog(text); self->setNotificationText(text); - //if (elapsed - lastTime > 50) { // 20 Hz refresh - // qApp->processEvents(QEventLoop::ExcludeUserInputEvents); - //} - lastTime = elapsed; } // return 0 so that we don't end the download return 0;