From f299d13209fe78a83e157570539cf6b616066b3b Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 9 Jan 2014 01:08:48 -0800 Subject: [PATCH] Mac: delete long-unused code which static code checker cppcheck flagged as possible errors. --- clientgui/mac/SetupSecurity.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/clientgui/mac/SetupSecurity.cpp b/clientgui/mac/SetupSecurity.cpp index a5bb3a0b31..65c17c56e0 100644 --- a/clientgui/mac/SetupSecurity.cpp +++ b/clientgui/mac/SetupSecurity.cpp @@ -973,18 +973,6 @@ static OSStatus GetAuthorization (void) { ourAuthRightsItem[2].valueLength = strlen (chownPath); ourAuthRightsItem[2].flags = 0; -#if AUTHORIZE_LOOKUPD_MEMBERD - ourAuthRightsItem[3].name = kAuthorizationRightExecute; - ourAuthRightsItem[3].value = lookupdPath; - ourAuthRightsItem[3].valueLength = strlen (lookupdPath); - ourAuthRightsItem[3].flags = 0; - - ourAuthRightsItem[4].name = kAuthorizationRightExecute; - ourAuthRightsItem[4].value = memberdPath; - ourAuthRightsItem[4].valueLength = strlen (memberdPath); - ourAuthRightsItem[4].flags = 0; -#endif - ourAuthRights.count = RIGHTS_COUNT; ourAuthRights.items = ourAuthRightsItem; @@ -996,7 +984,6 @@ static OSStatus GetAuthorization (void) { ourAuthEnvironment.count = 1; ourAuthEnvironment.items = ourAuthEnvItem; - ourAuthFlags = kAuthorizationFlagInteractionAllowed | kAuthorizationFlagExtendRights; // When this is called from the installer, the installer has already authenticated.