From 0768d0dff9b2dc647da480bd73f5f25c84fdb427 Mon Sep 17 00:00:00 2001 From: Frank Meerkoetter Date: Thu, 30 Jul 2015 12:48:52 +0200 Subject: [PATCH] Remove superfluous check The same check is done ~3 lines above. Change-Id: I8e6aeff89a7b0f3805afdf453b133dc98da59066 Reviewed-by: Robin Burchell Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlbinding.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp index b0ccf9a..f170095 100644 --- a/src/qml/qml/qqmlbinding.cpp +++ b/src/qml/qml/qqmlbinding.cpp @@ -429,11 +429,6 @@ void QQmlBinding::setTarget(QObject *object, const QQmlPropertyData &core) QQmlPropertyData pd = core; - if (!object) { - m_targetIndex = -1; - return; - } - while (pd.isAlias()) { int coreIndex = pd.coreIndex; int valueTypeIndex = pd.getValueTypeCoreIndex(); -- 2.7.4