QHostInfo: remove usused -Result and -Runnable ctors

Clean up after all users are ported to the SlotObjUniquePtr overloads.

Pick-to: 6.6 6.5
Change-Id: I3e58249296ea9674c45fb412463ae3201518de72
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Marc Mutz 2023-08-02 21:19:31 +02:00
parent 5941f192ab
commit 1a3f573bd9
2 changed files with 0 additions and 18 deletions

View File

@ -818,13 +818,6 @@ int QHostInfo::lookupHostImpl(const QString &name,
return id;
}
QHostInfoRunnable::QHostInfoRunnable(const QString &hn, int i, const QObject *receiver,
QtPrivate::QSlotObjectBase *slotObj) :
toBeLookedUp(hn), id(i), resultEmitter(receiver, slotObj)
{
setAutoDelete(true);
}
QHostInfoRunnable::QHostInfoRunnable(const QString &hn, int i, const QObject *receiver,
QtPrivate::SlotObjUniquePtr slotObj)
: toBeLookedUp{hn}, id{i}, resultEmitter{receiver, std::move(slotObj)}

View File

@ -43,16 +43,7 @@ class QHostInfoResult : public QObject
{
Q_OBJECT
public:
QHostInfoResult(const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj)
: receiver(receiver), slotObj(slotObj),
withContextObject(slotObj && receiver)
{
if (receiver)
moveToThread(receiver->thread());
}
explicit QHostInfoResult(const QObject *receiver, QtPrivate::SlotObjUniquePtr slot);
~QHostInfoResult() override;
void postResultsReady(const QHostInfo &info);
@ -145,8 +136,6 @@ private:
class QHostInfoRunnable : public QRunnable
{
public:
QHostInfoRunnable(const QString &hn, int i, const QObject *receiver,
QtPrivate::QSlotObjectBase *slotObj);
explicit QHostInfoRunnable(const QString &hn, int i, const QObject *receiver,
QtPrivate::SlotObjUniquePtr slotObj);
~QHostInfoRunnable() override;