summaryrefslogtreecommitdiff
path: root/libs/distrho/DistrhoUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/distrho/DistrhoUtils.hpp')
-rw-r--r--libs/distrho/DistrhoUtils.hpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/libs/distrho/DistrhoUtils.hpp b/libs/distrho/DistrhoUtils.hpp
index 82fa8df..76669d2 100644
--- a/libs/distrho/DistrhoUtils.hpp
+++ b/libs/distrho/DistrhoUtils.hpp
@@ -30,13 +30,6 @@
# include <stdint.h>
#endif
-#ifdef DISTRHO_OS_WINDOWS
-# include <winsock2.h>
-# include <windows.h>
-#else
-# include <unistd.h>
-#endif
-
#if defined(DISTRHO_OS_MAC) && ! defined(CARLA_OS_MAC)
namespace std {
inline float
@@ -136,36 +129,5 @@ void d_safe_exception(const char* const exception, const char* const file, const
}
// -----------------------------------------------------------------------
-// d_*sleep
-
-static inline
-void d_sleep(const uint secs)
-{
- DISTRHO_SAFE_ASSERT_RETURN(secs > 0,);
-
- try {
-#ifdef DISTRHO_OS_WINDOWS
- ::Sleep(secs * 1000);
-#else
- ::sleep(secs);
-#endif
- } DISTRHO_SAFE_EXCEPTION("carla_sleep");
-}
-
-static inline
-void d_msleep(const uint msecs)
-{
- DISTRHO_SAFE_ASSERT_RETURN(msecs > 0,);
-
- try {
-#ifdef DISTRHO_OS_WINDOWS
- ::Sleep(msecs);
-#else
- ::usleep(msecs * 1000);
-#endif
- } DISTRHO_SAFE_EXCEPTION("carla_msleep");
-}
-
-// -----------------------------------------------------------------------
#endif // DISTRHO_UTILS_HPP_INCLUDED