Loading...
iokit/Kernel/IOWorkLoop.cpp xnu-201.5 xnu-123.5
--- xnu/xnu-201.5/iokit/Kernel/IOWorkLoop.cpp
+++ xnu/xnu-123.5/iokit/Kernel/IOWorkLoop.cpp
@@ -37,8 +37,7 @@
 OSDefineMetaClassAndStructors(IOWorkLoop, OSObject);
 
 // Block of unused functions intended for future use
-OSMetaClassDefineReservedUsed(IOWorkLoop, 0);
-
+OSMetaClassDefineReservedUnused(IOWorkLoop, 0);
 OSMetaClassDefineReservedUnused(IOWorkLoop, 1);
 OSMetaClassDefineReservedUnused(IOWorkLoop, 2);
 OSMetaClassDefineReservedUnused(IOWorkLoop, 3);
@@ -375,20 +374,6 @@
     IORecursiveLockWakeup(gateLock, event, oneThread);
 }
 
-IOReturn IOWorkLoop::runAction(Action inAction, OSObject *target,
-                                  void *arg0 = 0, void *arg1 = 0,
-                                  void *arg2 = 0, void *arg3 = 0)
-{
-    IOReturn res;
-
-    // closeGate is recursive so don't worry if we already hold the lock.
-    closeGate();
-    res = (*inAction)(target, arg0, arg1, arg2, arg3);
-    openGate();
-
-    return res;
-}
-
 IOReturn IOWorkLoop::_maintRequest(void *inC, void *inD, void *, void *)
 {
     maintCommandEnum command = (maintCommandEnum) (vm_address_t) inC;