From: TimePath Date: Fri, 29 Dec 2017 08:36:37 +0000 (+1100) Subject: Remove nonsense assertions X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf79e813022a2306898a3ca204a32eaf13b27f86;p=xonotic%2Fnetradiant.git Remove nonsense assertions --- 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"; }