From 6c2f6e029ea39aada85b297721a366faaa8aeb5f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 8 Jan 2018 11:40:39 +0100 Subject: Cleanup MM::allocObject() The prototype argument has been unused for quite some time, finally remove it. Change-Id: Ifcebe413a1951ed972b370afc48640bd22969943 Reviewed-by: Simon Hausmann --- src/qml/memory/qv4mm_p.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/qml/memory') diff --git a/src/qml/memory/qv4mm_p.h b/src/qml/memory/qv4mm_p.h index 1c059cafa2..65652bc72e 100644 --- a/src/qml/memory/qv4mm_p.h +++ b/src/qml/memory/qv4mm_p.h @@ -216,12 +216,10 @@ public: } template - typename ObjectType::Data *allocObject(InternalClass *ic, Object *prototype, Args... args) + typename ObjectType::Data *allocObject(InternalClass *ic, Args... args) { Scope scope(engine); Scoped t(scope, allocateObject(ic)); - Q_ASSERT(t->internalClass()->prototype == (prototype ? prototype->d() : nullptr)); - Q_UNUSED(prototype); t->d_unchecked()->init(args...); return t->d(); } -- cgit v1.2.3