summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-26 12:15:20 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-26 12:59:00 -0700
commit8177dd4dc34be2f9181b4e8dcc3de64ae7237e4d (patch)
tree7ad5eaed61f6a8264aa8220f640abd4e0b163bfb /mobile-widgets
parent66fd93c9ccc958b080d902fb06fff0aa34ae8a36 (diff)
downloadsubsurface-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.cpp11
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;