diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h index c0c50080a2..641a15494c 100644 --- a/src/qml/qml/qqmltypeloader_p.h +++ b/src/qml/qml/qqmltypeloader_p.h @@ -186,22 +186,6 @@ private: void setData(QQmlDataBlob *, const QQmlDataBlob::SourceCodeData &); void setCachedUnit(QQmlDataBlob *blob, const QQmlPrivate::CachedQmlUnit *unit); - template - struct TypedCallback - { - TypedCallback(T *object, void (T::*func)(QQmlTypeData *)) : o(object), mf(func) {} - - static void redirect(void *arg, QQmlTypeData *type) - { - TypedCallback *self = reinterpret_cast *>(arg); - ((self->o)->*(self->mf))(type); - } - - private: - T *o; - void (T::*mf)(QQmlTypeData *); - }; - typedef QHash TypeCache; typedef QHash ScriptCache; typedef QHash QmldirCache;