From 91f54ea7e467e09184713cb64855ffcd0e2ae5e7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Jan 2018 10:12:41 +0100 Subject: [PATCH] Remove a useless assert from wxDataViewTreeNode::GetChildNodes() Checking that a pointer is non-null before dereferencing it is perfectly useless: the code will crash anyhow, so assert doesn't help with debugging it in debug builds nor with preventing the crash in release. --- src/generic/datavgen.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index dfc7c2c489..372cb86cb8 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -496,7 +496,6 @@ public: const wxDataViewTreeNodes& GetChildNodes() const { - wxASSERT( m_branchData != NULL ); return m_branchData->children; }