From aa449c82dc3a5505b8a63843b83aed0f5dab8ed1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 30 Jan 2015 12:00:36 +0100 Subject: clenup --- common/clientapi.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'common/clientapi.cpp') diff --git a/common/clientapi.cpp b/common/clientapi.cpp index 260b6b8..190bb57 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp @@ -6,14 +6,8 @@ namespace async { void run(const std::function &runner) { + //TODO use a job that runs in a thread? QtConcurrent::run(runner); - - // //FIXME we should be using a Job instead of a timer - // auto timer = new QTimer; - // timer->setSingleShot(true); - // QObject::connect(timer, &QTimer::timeout, runner); - // QObject::connect(timer, &QTimer::timeout, timer, &QObject::deleteLater); - // timer->start(0); }; } // namespace async -- cgit v1.2.3