From c0c241911123ee3e9f97b53f644e7b0c999ad5d2 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Thu, 15 Sep 2022 10:23:01 +0200 Subject: [PATCH] QQmlTypeLoader: Purge unused TypedCallback struct Amends d2e557c2c2d7fcf3bf7c1676df3902e115986dc2 Change-Id: I25907188b045e7ebd5b15f7b64fafb31eda4a054 Reviewed-by: Ulf Hermann --- src/qml/qml/qqmltypeloader_p.h | 16 ---------------- 1 file changed, 16 deletions(-) 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;