Loading...
iokit/Kernel/RootDomainUserClient.cpp xnu-2050.22.13 xnu-2050.9.2
--- xnu/xnu-2050.22.13/iokit/Kernel/RootDomainUserClient.cpp
+++ xnu/xnu-2050.9.2/iokit/Kernel/RootDomainUserClient.cpp
@@ -191,23 +191,6 @@
     return kIOReturnSuccess;
 }
 
-IOReturn RootDomainUserClient::secureGetSystemSleepType(
-    uint32_t    *outSleepType)
-{
-    int                     admin_priv = 0;
-    IOReturn                ret;
-
-    ret = clientHasPrivilege(fOwningTask, kIOClientPrivilegeAdministrator);
-    admin_priv = (kIOReturnSuccess == ret);
-
-    if (admin_priv && fOwner) {
-        ret = fOwner->getSystemSleepType(outSleepType);
-    } else {
-        ret = kIOReturnNotPrivileged;
-    }
-    return ret;
-}
-
 IOReturn RootDomainUserClient::clientClose( void )
 {
     detach(fOwner);
@@ -328,26 +311,11 @@
             break;
             
         case kPMActivityTickle:
-            if ( fOwner->checkSystemCanSustainFullWake() )
-            {
-               fOwner->reportUserInput( );
-               fOwner->setProperty(kIOPMRootDomainWakeTypeKey, "UserActivity Assertion");
-            }
+            fOwner->reportUserInput( );
+            fOwner->setProperty(kIOPMRootDomainWakeTypeKey, "UserActivity Assertion");
             ret = kIOReturnSuccess;
             break;
-
-        case kPMSetClamshellSleepState:
-            fOwner->setDisableClamShellSleep(arguments->scalarInput[0] ? true : false);
-            ret = kIOReturnSuccess;
-            break;
-
-        case kPMGetSystemSleepType:
-            if (1 == arguments->scalarOutputCount)
-            {
-                ret = this->secureGetSystemSleepType(
-                        (uint32_t *) &arguments->scalarOutput[0]);
-            }
-            break;
+            
 /*
         case kPMMethodCopySystemTimeline:
             // intentional fallthrough