diff --git a/security/manager/ssl/src/nsNSSComponent.cpp b/security/manager/ssl/src/nsNSSComponent.cpp index f5d1998894c..46a81805f39 100644 --- a/security/manager/ssl/src/nsNSSComponent.cpp +++ b/security/manager/ssl/src/nsNSSComponent.cpp @@ -1657,14 +1657,9 @@ nsNSSComponent::InitializeNSS(bool showWarningBox) else { - // XP_MAC == CFM // XP_MACOSX == MachO - #if defined(XP_MAC) && defined(XP_MACOSX) - #error "This code assumes XP_MAC and XP_MACOSX will never be defined at the same time" - #endif - - #if defined(XP_MAC) || defined(XP_MACOSX) + #if defined(XP_MACOSX) // On Mac CFM we place all NSS DBs in the Security // Folder in the profile directory. nsCOMPtr cfmSecurityPath; @@ -1672,11 +1667,7 @@ nsNSSComponent::InitializeNSS(bool showWarningBox) cfmSecurityPath->AppendNative(NS_LITERAL_CSTRING("Security")); #endif - #if defined(XP_MAC) - // on CFM, cfmSecurityPath and profilePath point to the same oject - profilePath->Create(nsIFile::DIRECTORY_TYPE, 0); //This is for Mac, don't worry about - //permissions. - #elif defined(XP_MACOSX) + #ifdef defined(XP_MACOSX) // On MachO, we need to access both directories, // and therefore need separate nsIFile instances. // Keep cfmSecurityPath instance, obtain new instance for MachO profilePath. diff --git a/security/manager/ssl/src/nsNSSHelper.h b/security/manager/ssl/src/nsNSSHelper.h index 1ddd90f8eef..9c9ce70bb44 100644 --- a/security/manager/ssl/src/nsNSSHelper.h +++ b/security/manager/ssl/src/nsNSSHelper.h @@ -52,9 +52,5 @@ pip_ucs2_ascii_conversion_fn(PRBool toUnicode, nsresult setPassword(PK11SlotInfo *slot, nsIInterfaceRequestor *ctx); -#ifdef XP_MAC -extern OSErr ConvertMacPathToUnixPath(const char *macPath, char **unixPath); -#endif - #endif diff --git a/security/manager/ssl/src/nsPKCS12Blob.cpp b/security/manager/ssl/src/nsPKCS12Blob.cpp index f04a58e9cca..e74e3ae72c4 100644 --- a/security/manager/ssl/src/nsPKCS12Blob.cpp +++ b/security/manager/ssl/src/nsPKCS12Blob.cpp @@ -581,29 +581,6 @@ nsPKCS12Blob::inputToDecoder(SEC_PKCS12DecoderContext *dcx, nsIFile *file) return NS_OK; } -#ifdef XP_MAC - -OSErr ConvertMacPathToUnixPath(const char *macPath, char **unixPath) -{ - int len; - char *cursor; - - len = PL_strlen(macPath); - cursor = (char*)PR_Malloc(len+2); - if (!cursor) - return memFullErr; - - memcpy(cursor+1, macPath, len+1); - *unixPath = cursor; - *cursor = '/'; - while ((cursor = PL_strchr(cursor, ':')) != NULL) { - *cursor = '/'; - cursor++; - } - return noErr; -} -#endif - // // C callback methods //