From e9678efe00814038b7dbbdbd93e380e47b51ecf1 Mon Sep 17 00:00:00 2001 From: Shubham Lagwankar Date: Wed, 24 Apr 2019 14:39:27 -0400 Subject: [PATCH] Problem: unused Windows-specific code in sleep_ms Solution: remove it since sleep_ms isn't used on Windows --- src/signaler.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/signaler.cpp b/src/signaler.cpp index 6d7ce982..3f22fc93 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -77,10 +77,7 @@ static int sleep_ms (unsigned int ms_) { if (ms_ == 0) return 0; -#if defined ZMQ_HAVE_WINDOWS - Sleep (ms_ > 0 ? ms_ : INFINITE); - return 0; -#elif defined ZMQ_HAVE_ANDROID +#if defined ZMQ_HAVE_ANDROID usleep (ms_ * 1000); return 0; #elif defined ZMQ_HAVE_VXWORKS