diff options
author | Corbin Dunn <corbin> | 2021-03-03 18:56:09 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2021-03-03 18:56:09 +0300 |
commit | 93cdf461f3a66fb43716ddb99cf186fd0ff9ed91 (patch) | |
tree | 5c5c6073004c7ffc31d54aaa668bf520490e2b76 /intern | |
parent | 87c949a3bddce445e56337efc6764e29dcfab36c (diff) |
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
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCocoa.mm | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index 73927317b24..add7962d924 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -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 |