qmetatype.h: remove unnecessary specialization

Commit 5db3fd29b4 removed the expansions
that likely needed this.

Pick-to: 6.3 6.4
Change-Id: I6d3880c7d99d4fc494c8fffd16fbbe8dcde4a1b1
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Thiago Macieira 2022-06-18 07:37:05 -07:00
parent c474825945
commit 3335b541e7

View File

@ -893,13 +893,6 @@ namespace QtPrivate
static constexpr MetaObjectFn metaObjectFunction = nullptr;
};
#ifndef QT_NO_QOBJECT
template<>
struct MetaObjectForType<void>
{
static constexpr const QMetaObject *value() { return nullptr; }
using MetaObjectFn = const QMetaObject *(*)(const QMetaTypeInterface *);
static constexpr MetaObjectFn metaObjectFunction = nullptr;
};
template<typename T>
struct MetaObjectForType<T*, typename std::enable_if<IsPointerToTypeDerivedFromQObject<T*>::Value>::type>
{