From 9474550351ea6365ea09fb4b2f1d9c916cd588af Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Sat, 25 May 2013 01:31:23 +0300 Subject: [PATCH] OP-958: usbmon_mac: remove unused code --- .../src/plugins/opHID/src/opHID_usbmon_mac.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/opHID/src/opHID_usbmon_mac.cpp b/ground/openpilotgcs/src/plugins/opHID/src/opHID_usbmon_mac.cpp index 39dc27dfc..06574b0a5 100644 --- a/ground/openpilotgcs/src/plugins/opHID/src/opHID_usbmon_mac.cpp +++ b/ground/openpilotgcs/src/plugins/opHID/src/opHID_usbmon_mac.cpp @@ -35,11 +35,7 @@ #include #include "opHID_const.h" -#define OP_LOOPMODE_NAME_MAC "Open_Pilot_Loop_Mode" - -#define printf qDebug - -// ! Local helper functions +// Local helper functions static bool HID_GetIntProperty(IOHIDDeviceRef dev, CFStringRef property, int *value); static bool HID_GetStrProperty(IOHIDDeviceRef dev, CFStringRef property, QString & value); @@ -60,9 +56,6 @@ USBMonitor::USBMonitor(QObject *parent) : QThread(parent) USBMonitor::~USBMonitor() { m_terminate = true; - // if(hid_manager != NULL) - // IOHIDManagerUnscheduleFromRunLoop(hid_manager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); -// quit(); while (hid_manager != 0) { this->sleep(10);