From 93cdf461f3a66fb43716ddb99cf186fd0ff9ed91 Mon Sep 17 00:00:00 2001 From: Corbin Dunn Date: Wed, 3 Mar 2021 21:26:09 +0530 Subject: macOS/Ghost: Remove redundant nil check after initWithContentRect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- intern/ghost/intern/GHOST_WindowCocoa.mm | 5 ----- 1 file changed, 5 deletions(-) (limited to 'intern') 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 -- cgit v1.2.3