macOS/Ghost: Remove redundant nil check after initWithContentRect

AppKit’s NSWindow.h has NS_ASSUME_NONNULL_BEGIN, and only methods/
properties explicitly marked nullable will ever return nil.

Reviewed By: #platform_macos, sebbas
Differential Revision: https://developer.blender.org/D10603
This commit is contained in:
Corbin Dunn 2021-03-03 21:26:09 +05:30 committed by Ankit Meel
parent 87c949a3bd
commit 93cdf461f3
1 changed files with 0 additions and 5 deletions

View File

@ -336,11 +336,6 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
backing:NSBackingStoreBuffered
defer:NO];
if (m_window == nil) {
[pool drain];
return;
}
[m_window setSystemAndWindowCocoa:systemCocoa windowCocoa:this];
// Forbid to resize the window below the blender defined minimum one