aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmlconnections.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/types/qqmlconnections.cpp')
-rw-r--r--src/qml/types/qqmlconnections.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/types/qqmlconnections.cpp b/src/qml/types/qqmlconnections.cpp
index d1a7aa9b6f..2ae3df6ebb 100644
--- a/src/qml/types/qqmlconnections.cpp
+++ b/src/qml/types/qqmlconnections.cpp
@@ -289,13 +289,6 @@ void QQmlConnections::connectSignals()
signal->setEnabled(d->enabled);
auto f = d->compilationUnit->runtimeFunctions[binding->value.compiledScriptIndex];
-
- // If the function is marked as having a nested function, then the user wrote:
- // onSomeSignal: function() { /*....*/ }
- // So take that nested function:
- if (auto closure = f->nestedFunction())
- f = closure;
-
QQmlBoundSignalExpression *expression =
ctxtdata ? new QQmlBoundSignalExpression(target, signalIndex, ctxtdata, this, f)
: nullptr;