Remove redundant static uint32_t QWaylandDisplay::currentTimeMillisec()

Fortunately it was unused. Its 32-bit unsigned return type, measuring
time in milliseconds, wraps around every 50 days. If Qt Wayland ever
does need to know the current time in milliseconds, I can recommend
QDateTime::currentMSecsSinceEpoch().

Change-Id: I03e70e3c7060b1e8fb82fc2e151bb187b6598b96
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Edward Welbourne 2023-11-14 16:19:26 +01:00
parent 9dd6286994
commit d3fd429f82
2 changed files with 0 additions and 12 deletions

View File

@ -858,16 +858,6 @@ void QWaylandDisplay::removeListener(RegistryListener listener, void *data)
mRegistryListeners.erase(iter, mRegistryListeners.end());
}
uint32_t QWaylandDisplay::currentTimeMillisec()
{
//### we throw away the time information
struct timeval tv;
int ret = gettimeofday(&tv, nullptr);
if (ret == 0)
return tv.tv_sec*1000 + tv.tv_usec/1000;
return 0;
}
void QWaylandDisplay::forceRoundTrip()
{
wl_display_roundtrip(mDisplay);

View File

@ -226,8 +226,6 @@ public:
QWaylandShm *shm() const { return mShm.data(); }
static uint32_t currentTimeMillisec();
void forceRoundTrip();
bool supportsWindowDecoration() const;