QQmlTypeLoader: Purge unused TypedCallback struct

Amends d2e557c2c2

Change-Id: I25907188b045e7ebd5b15f7b64fafb31eda4a054
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Fabian Kosmale 2022-09-15 10:23:01 +02:00
parent 41dd77dbee
commit c0c2419111
1 changed files with 0 additions and 16 deletions

View File

@ -186,22 +186,6 @@ private:
void setData(QQmlDataBlob *, const QQmlDataBlob::SourceCodeData &);
void setCachedUnit(QQmlDataBlob *blob, const QQmlPrivate::CachedQmlUnit *unit);
template<typename T>
struct TypedCallback
{
TypedCallback(T *object, void (T::*func)(QQmlTypeData *)) : o(object), mf(func) {}
static void redirect(void *arg, QQmlTypeData *type)
{
TypedCallback<T> *self = reinterpret_cast<TypedCallback<T> *>(arg);
((self->o)->*(self->mf))(type);
}
private:
T *o;
void (T::*mf)(QQmlTypeData *);
};
typedef QHash<QUrl, QQmlTypeData *> TypeCache;
typedef QHash<QUrl, QQmlScriptBlob *> ScriptCache;
typedef QHash<QUrl, QQmlQmldirData *> QmldirCache;