]> git.lyx.org Git - lyx.git/blobdiff - src/support/PathChanger.cpp
Handle properly exception that can be thrown by to_local8bit
[lyx.git] / src / support / PathChanger.cpp
index 733d2e6e757393cf27ff7fab09c59a424199c6c9..999a7c591370793c5886776c031e5bbb208ac796 100644 (file)
@@ -64,29 +64,4 @@ int PathChanger::pop()
 
 #define PathChanger(x) unnamed_PathChanger;
 
-#ifdef __APPLE__
-
-#include <CoreServices/CoreServices.h>
-
-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.