mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
Remove unused Mac specific code
This commit is contained in:
parent
81d863fd41
commit
e4051a6bd5
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user