summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-11 10:28:44 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-12 15:25:06 +0100
commit03e03d7ceb6da284f217fddd76b35d0c2b002af7 (patch)
tree51567314eebe085ab244d52b7adb44c788ecbc2d /src/corelib/kernel
parent267bb4ec6c628d998ba7f11bcdf56cc03b0aa5a0 (diff)
Purge QCoreApplicationPrivate::cloneEvent and overrides
Not used anywhere in Qt 6, and if whatever needs this ever comes back, then we won't implement it like this. Change-Id: I99655ba5825644cef3686bbe50ca688b68f5c2a4 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qcoreapplication.cpp16
-rw-r--r--src/corelib/kernel/qcoreapplication_p.h4
2 files changed, 0 insertions, 20 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp
index 5f169674fc..758e1d3caa 100644
--- a/src/corelib/kernel/qcoreapplication.cpp
+++ b/src/corelib/kernel/qcoreapplication.cpp
@@ -2224,22 +2224,6 @@ void QCoreApplicationPrivate::setApplicationFilePath(const QString &path)
QCoreApplicationPrivate::cachedApplicationFilePath = new QString(path);
}
-#ifndef QT_NO_QOBJECT
-QEvent *QCoreApplicationPrivate::cloneEvent(QEvent *e)
-{
- switch (e->type()) {
- case QEvent::None:
- return new QEvent(*e);
- case QEvent::Timer:
- return new QTimerEvent(*static_cast<QTimerEvent*>(e));
- default:
- Q_ASSERT_X(false, "cloneEvent()", "not implemented");
- break;
- }
- return nullptr;
-}
-#endif
-
/*!
Returns the directory that contains the application executable.
diff --git a/src/corelib/kernel/qcoreapplication_p.h b/src/corelib/kernel/qcoreapplication_p.h
index c711c48a85..7b60ef5698 100644
--- a/src/corelib/kernel/qcoreapplication_p.h
+++ b/src/corelib/kernel/qcoreapplication_p.h
@@ -203,10 +203,6 @@ public:
#ifdef QT_NO_QOBJECT
QCoreApplication *q_ptr;
#endif
-
-#ifndef QT_NO_QOBJECT
- virtual QEvent *cloneEvent(QEvent *e);
-#endif
};
QT_END_NAMESPACE