The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit e4051a6bd586befbcc3dd92c50225d68e1833c73
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Feb 12 12:29:33 2013 +0100

    Remove unused Mac specific code

diff --git a/src/support/PathChanger.cpp b/src/support/PathChanger.cpp
index 733d2e6..999a7c5 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 <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.
diff --git a/src/support/PathChanger.h b/src/support/PathChanger.h
index d82aab3..6af4ab4 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

-----------------------------------------------------------------------

Summary of changes:
 src/support/PathChanger.cpp |   25 -------------------------
 src/support/PathChanger.h   |   13 -------------
 2 files changed, 0 insertions(+), 38 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to