Windows: remove unused function
authorLudovic Rousseau <ludovic.rousseau@gmail.com>
Sat, 16 Feb 2013 16:00:32 +0000 (17:00 +0100)
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Mon, 18 Feb 2013 17:23:46 +0000 (18:23 +0100)
libusb/os/poll_windows.c:223:13: warning: 'reset_overlapped' defined but not used [-Wunused-function]

libusb/os/poll_windows.c
libusb/version_nano.h

index 55e93c7..03e6f3c 100644 (file)
@@ -220,20 +220,6 @@ static void free_overlapped(OVERLAPPED *overlapped)
        free(overlapped);
 }
 
-static void reset_overlapped(OVERLAPPED *overlapped)
-{
-       HANDLE event_handle;
-       if (overlapped == NULL)
-               return;
-
-       event_handle = overlapped->hEvent;
-       if (event_handle != NULL) {
-               ResetEvent(event_handle);
-       }
-       memset(overlapped, 0, sizeof(OVERLAPPED));
-       overlapped->hEvent = event_handle;
-}
-
 void exit_polling(void)
 {
        int i;
index a9c7c09..a5830c7 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10608
+#define LIBUSB_NANO 10609