aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2014-12-08 15:51:47 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-12-09 10:07:23 +0100
commite04822f3c2a6b69b7d75e2039256aa2433c59dd2 (patch)
tree1f455738570461e4313371c133964bfb276adfbe /src/qml/qml/qqmlengine_p.h
parent3228864f7b9ea20f307beedd1fd7e56fb3216654 (diff)
Cleanup: Remove unused code
isConcurrent is not virtual and always returns true, so we can remove it and remove the if() on the caller side. Change-Id: Ie750fdeddaf8c339e1fcab99ebd967e3446bd975 Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r--src/qml/qml/qqmlengine_p.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h
index c9e429c7bb..3df249a667 100644
--- a/src/qml/qml/qqmlengine_p.h
+++ b/src/qml/qml/qqmlengine_p.h
@@ -334,10 +334,8 @@ void QQmlEnginePrivate::Locker::unlock()
void QQmlEnginePrivate::Locker::relock()
{
Q_ASSERT(!m_locked);
- if (m_ep->typeLoader.isConcurrent()) {
- m_ep->mutex.lock();
- m_locked = true;
- }
+ m_ep->mutex.lock();
+ m_locked = true;
}
/*!