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:
parent
87c949a3bd
commit
93cdf461f3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user