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. diff --git a/src/support/PathChanger.h b/src/support/PathChanger.h index d82aab39fb..6af4ab4e29 100644 --- a/src/support/PathChanger.h +++ b/src/support/PathChanger.h @@ -63,18 +63,5 @@ private: } // namespace support } // namespace lyx -#ifdef __APPLE__ - -#ifdef __cplusplus -extern "C" { -#endif -int getPrivateFrameworkPathName(char * buf, unsigned len, char const * framework); - -#ifdef __cplusplus -} -#endif - -#endif - #endif // PATHCHANGER_H