summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/client/qwaylanddisplay.cpp10
-rw-r--r--src/client/qwaylanddisplay_p.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/src/client/qwaylanddisplay.cpp b/src/client/qwaylanddisplay.cpp
index 429435144..c9de99828 100644
--- a/src/client/qwaylanddisplay.cpp
+++ b/src/client/qwaylanddisplay.cpp
@@ -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);
diff --git a/src/client/qwaylanddisplay_p.h b/src/client/qwaylanddisplay_p.h
index 951a64217..62ef71bd0 100644
--- a/src/client/qwaylanddisplay_p.h
+++ b/src/client/qwaylanddisplay_p.h
@@ -226,8 +226,6 @@ public:
QWaylandShm *shm() const { return mShm.data(); }
- static uint32_t currentTimeMillisec();
-
void forceRoundTrip();
bool supportsWindowDecoration() const;