Revert "Reland "Reimplement base::WaitableEvent with a kqueue on Mac.""

This reverts commit bb3210d3952c668037f92d7336be6cbe04fa396d.

Speculative revert for crbug/744550

Bug: 744550
Change-Id: I0b8a2464c2932d00349d3fd9a80ba7595c929ff7

TBR=mark,rsesek

Change-Id: I0b8a2464c2932d00349d3fd9a80ba7595c929ff7
Reviewed-on: https://chromium-review.googlesource.com/580639
Reviewed-by: Michael Nordman <[email protected]>
Commit-Queue: Michael Nordman <[email protected]>
Cr-Commit-Position: refs/heads/master@{#488706}
diff --git a/base/synchronization/waitable_event.h b/base/synchronization/waitable_event.h
index b29503d..716115c 100644
--- a/base/synchronization/waitable_event.h
+++ b/base/synchronization/waitable_event.h
@@ -13,12 +13,11 @@
 
 #if defined(OS_WIN)
 #include "base/win/scoped_handle.h"
-#elif defined(OS_MACOSX)
-#include "base/files/scoped_file.h"
-#elif defined(OS_POSIX)
+#endif
+
+#if defined(OS_POSIX)
 #include <list>
 #include <utility>
-
 #include "base/memory/ref_counted.h"
 #include "base/synchronization/lock.h"
 #endif
@@ -155,14 +154,6 @@
 
 #if defined(OS_WIN)
   win::ScopedHandle handle_;
-#elif defined(OS_MACOSX)
-  // The kqueue used to signal and wait on a custom user event.
-  ScopedFD kqueue_;
-
-  // Creates a kevent64_s, filling in the values using EV_SET64() with the
-  // specified flags and filter flags, and then submits it as a change to the
-  // |kqueue_|.
-  void PostEvent(uint16_t flags, uint32_t fflags);
 #else
   // On Windows, you must not close a HANDLE which is currently being waited on.
   // The MSDN documentation says that the resulting behaviour is 'undefined'.