diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-26 12:15:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-26 12:59:00 -0700 |
commit | 8177dd4dc34be2f9181b4e8dcc3de64ae7237e4d (patch) | |
tree | 7ad5eaed61f6a8264aa8220f640abd4e0b163bfb /mobile-widgets | |
parent | 66fd93c9ccc958b080d902fb06fff0aa34ae8a36 (diff) | |
download | subsurface-8177dd4dc34be2f9181b4e8dcc3de64ae7237e4d.tar.gz |
cleanup: remove dead code
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 11 |
1 files changed, 0 insertions, 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; |