Remove obsolete code using sleep() in wxMicroSleep() for BeOS

This code never worked (as proved by the conversion in it which was
wrong by a factor of 1e12) and should never be needed anyhow.

Simplify configure and give an error, not warning, if neither
nanosleep() nor usleep() are available, as otherwise we'd just get a
build error later when compiling utilsunx.cpp later.
This commit is contained in:
Vadim Zeitlin
2020-06-26 18:49:32 +02:00
parent 31581c0f41
commit f66199222e
3 changed files with 4 additions and 29 deletions

View File

@@ -192,9 +192,6 @@ void wxMicroSleep(unsigned long microseconds)
#endif // Sun
usleep(microseconds);
#elif defined(HAVE_SLEEP)
// under BeOS sleep() takes seconds (what about other platforms, if any?)
sleep(microseconds * 1000000);
#else // !sleep function
#error "usleep() or nanosleep() function required for wxMicroSleep"
#endif // sleep function