summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcore_unix.cpp
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2016-02-03 19:09:00 -0800
committerLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2016-02-04 22:34:38 +0000
commitbb747268ed89af8f034132fa46e30998b72a7ba9 (patch)
tree3516c7edfb90c3aab4a832945d8a8b8e12dfffe8 /src/corelib/kernel/qcore_unix.cpp
parente9802a10730345f734adff31a6c023690878c883 (diff)
Clean up new poll code slightly
Change-Id: I046126ff69a77a50e79efb1b6ebb0fffef67ac8e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcore_unix.cpp')
-rw-r--r--src/corelib/kernel/qcore_unix.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp
index c82754db82..23b98430bc 100644
--- a/src/corelib/kernel/qcore_unix.cpp
+++ b/src/corelib/kernel/qcore_unix.cpp
@@ -184,18 +184,4 @@ int qt_safe_poll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout
}
}
-int qt_poll_msecs(pollfd *fds, nfds_t nfds, int timeout)
-{
- timespec ts, *pts = Q_NULLPTR;
-
- if (timeout >= 0) {
- ts.tv_sec = timeout / 1000;
- ts.tv_nsec = (timeout % 1000) * 1000 * 1000;
-
- pts = &ts;
- }
-
- return qt_safe_poll(fds, nfds, pts);
-}
-
QT_END_NAMESPACE