X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FPathChanger.cpp;h=999a7c591370793c5886776c031e5bbb208ac796;hb=522f3517e1d7f61ed2bbcafe0632f50cb3e8ae2f;hp=733d2e6e757393cf27ff7fab09c59a424199c6c9;hpb=14e01a92a4a8b3c861bec41d33a1743870844e63;p=lyx.git diff --git a/src/support/PathChanger.cpp b/src/support/PathChanger.cpp index 733d2e6e75..999a7c5913 100644 --- a/src/support/PathChanger.cpp +++ b/src/support/PathChanger.cpp @@ -64,29 +64,4 @@ int PathChanger::pop() #define PathChanger(x) unnamed_PathChanger; -#ifdef __APPLE__ - -#include - -int getPrivateFrameworkPathName(char * buf, unsigned len, char const * framework) -{ - // Get our application's main bundle from Core Foundation - CFBundleRef myAppsBundle = CFBundleGetMainBundle(); - int result = 0 ; - if (NULL != myAppsBundle) { - CFURLRef baseURL = CFBundleCopyPrivateFrameworksURL( myAppsBundle ); - if (NULL != baseURL) { - CFURLRef bundleURL = CFURLCreateCopyAppendingPathComponent( kCFAllocatorSystemDefault, baseURL, - CFStringCreateWithCString( kCFAllocatorSystemDefault, framework, CFStringGetSystemEncoding() ), - false ); - if (NULL != bundleURL) { - result = CFURLGetFileSystemRepresentation( bundleURL, TRUE, (UInt8*)buf, len ); - } - } - } - return result; -} - -#endif - // in merged builds this is not the last line.