浏览代码

Cocoa: Remove checks for pre-10.8 SDK

OS X 10.8 is now the minimum required version but these checks were not
removed when that change was made.
Camilla Löwy 6 年之前
父节点
当前提交
1fca33b3c1
共有 2 个文件被更改,包括 0 次插入6 次删除
  1. 0 4
      src/cocoa_init.m
  2. 0 2
      src/nsgl_context.m

+ 0 - 4
src/cocoa_init.m

@@ -435,13 +435,9 @@ static GLFWbool initializeTIS(void)
 
         if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"])
         {
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
             [[NSBundle mainBundle] loadNibNamed:@"MainMenu"
                                           owner:NSApp
                                 topLevelObjects:&_glfw.ns.nibObjects];
-#else
-            [[NSBundle mainBundle] loadNibNamed:@"MainMenu" owner:NSApp];
-#endif
         }
         else
             createMenuBar();

+ 0 - 2
src/nsgl_context.m

@@ -232,9 +232,7 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
         //       Info.plist for unbundled applications
         // HACK: This assumes that NSOpenGLPixelFormat will remain
         //       a straightforward wrapper of its CGL counterpart
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
         addAttrib(kCGLPFASupportsAutomaticGraphicsSwitching);
-#endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/
     }
 
 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000