From cabf9234849508ba7285d1a5bafd3bab692eb80f Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Mon, 4 Jan 2016 11:46:16 +0100 Subject: Remove unnecessary null pointer checks --- platform/haiku/haiku_direct_window.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'platform/haiku/haiku_direct_window.cpp') diff --git a/platform/haiku/haiku_direct_window.cpp b/platform/haiku/haiku_direct_window.cpp index 3914ee272a..184d64f840 100644 --- a/platform/haiku/haiku_direct_window.cpp +++ b/platform/haiku/haiku_direct_window.cpp @@ -16,9 +16,7 @@ HaikuDirectWindow::HaikuDirectWindow(BRect p_frame) HaikuDirectWindow::~HaikuDirectWindow() { - if (update_runner) { - delete update_runner; - } + delete update_runner; } void HaikuDirectWindow::SetHaikuGLView(HaikuGLView* p_view) { -- cgit v1.2.3