Remove unused Mac specific code

This commit is contained in:
Jean-Marc Lasgouttes 2013-02-12 12:29:33 +01:00
parent 81d863fd41
commit e4051a6bd5
2 changed files with 0 additions and 38 deletions

View File

@ -64,29 +64,4 @@ int PathChanger::pop()
#define PathChanger(x) unnamed_PathChanger; #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. // in merged builds this is not the last line.

View File

@ -63,18 +63,5 @@ private:
} // namespace support } // namespace support
} // namespace lyx } // 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 #endif // PATHCHANGER_H