Skip to content

Commit

Permalink
Testlib: remove no longer used function call
Browse files Browse the repository at this point in the history
QBenchmarkEvent::nativeEventFilter() was changed with Qt6 but the old
Qt5 version was still there and no longer used.

Pick-to: 6.8 6.7 6.5
Change-Id: Ia740ce0dc743666c9b3bcbe12d1d310fb9ffcd7b
Reviewed-by: Fabian Kosmale <[email protected]>
  • Loading branch information
chehrlic committed Jul 3, 2024
1 parent 7afe277 commit ef215fd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/testlib/qbenchmarkevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ int QBenchmarkEvent::adjustMedianCount(int suggestion)
}

// This could be done in a much better way, this is just the beginning.
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
bool QBenchmarkEvent::nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result)
#else
bool QBenchmarkEvent::nativeEventFilter(const QByteArray &eventType, void *message, long *result)
#endif
{
Q_UNUSED(eventType);
Q_UNUSED(message);
Expand Down
4 changes: 0 additions & 4 deletions src/testlib/qbenchmarkevent_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ class QBenchmarkEvent : public QBenchmarkMeasurerBase, public QAbstractNativeEve
bool isMeasurementAccepted(Measurement measurement) override;
int adjustIterationCount(int suggestion) override;
int adjustMedianCount(int suggestion) override;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
bool nativeEventFilter(const QByteArray &eventType, void *message, qintptr *result) override;
#else
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
#endif
qint64 eventCounter = 0;
};

Expand Down

0 comments on commit ef215fd

Please sign in to comment.