From: Jay Freeman (saurik) Date: Mon, 14 Jul 2014 01:43:50 +0000 (-0700) Subject: Remove the now-obsolete VNCSetSender() function. X-Git-Tag: v0.9.3402^0 X-Git-Url: https://git.saurik.com/veency.git/commitdiff_plain/aef9bc1958cd53ad3f41fbb04bc49a09c790586e Remove the now-obsolete VNCSetSender() function. --- diff --git a/Tweak.mm b/Tweak.mm index e0377fe..a944f09 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -597,16 +597,12 @@ static void VNCPointerOld(int buttons, int x, int y, CGPoint location, int diff, mach_port_deallocate(mach_task_self(), purple); } -static void VNCSetSender(IOHIDEventRef event) { - IOHIDEventSetSenderID(event, 0xDEFACEDBEEFFECE5); -} - static void VNCSendHIDEvent(IOHIDEventRef event) { static IOHIDEventSystemClientRef client_(NULL); if (client_ == NULL) client_ = IOHIDEventSystemClientCreate(kCFAllocatorDefault); - VNCSetSender(event); + IOHIDEventSetSenderID(event, 0xDEFACEDBEEFFECE5); IOHIDEventSystemClientDispatchEvent(client_, event); CFRelease(event); }