From cf79e813022a2306898a3ca204a32eaf13b27f86 Mon Sep 17 00:00:00 2001 From: TimePath Date: Fri, 29 Dec 2017 19:36:37 +1100 Subject: [PATCH] Remove nonsense assertions --- libs/traverselib.h | 2 -- radiant/server.cpp | 1 - 2 files changed, 3 deletions(-) diff --git a/libs/traverselib.h b/libs/traverselib.h index c90d01b5..64df1212 100644 --- a/libs/traverselib.h +++ b/libs/traverselib.h @@ -166,7 +166,6 @@ void detach( Observer* observer ){ } /// \brief \copydoc scene::Traversable::insert() void insert( scene::Node& node ){ - ASSERT_MESSAGE( &node != 0, "TraversableNodeSet::insert: sanity check failed" ); m_undo.save(); ASSERT_MESSAGE( m_children.find( NodeSmartReference( node ) ) == m_children.end(), "TraversableNodeSet::insert - element already exists" ); @@ -179,7 +178,6 @@ void insert( scene::Node& node ){ } /// \brief \copydoc scene::Traversable::erase() void erase( scene::Node& node ){ - ASSERT_MESSAGE( &node != 0, "TraversableNodeSet::erase: sanity check failed" ); m_undo.save(); ASSERT_MESSAGE( m_children.find( NodeSmartReference( node ) ) != m_children.end(), "TraversableNodeSet::erase - failed to find element" ); diff --git a/radiant/server.cpp b/radiant/server.cpp index fde6f86d..2a264e6d 100644 --- a/radiant/server.cpp +++ b/radiant/server.cpp @@ -61,7 +61,6 @@ DebugMessageHandler& getDebugMessageHandler(){ } void registerModule( const char* type, int version, const char* name, Module& module ){ - ASSERT_NOTNULL( &module ); if ( !m_modules.insert( Modules_::value_type( ModuleKey( ModuleType( type, version ), name ), &module ) ).second ) { globalErrorStream() << "module already registered: type=" << makeQuoted( type ) << " name=" << makeQuoted( name ) << "\n"; } -- 2.39.2