From 0c45f85bc09d578ec64a12ec9ac1fdf907a2a3f2 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 12 Jun 2024 13:11:09 -0400 Subject: [PATCH] Revert "sch_symbol: use fail message fall back to dummy symbol when passed null" This reverts commit e0e837189defe1f61e8ae37a3979c832eb34a7d7. --- eeschema/sch_symbol.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 0356daf8a0..b0094dbc72 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -231,11 +230,7 @@ wxString SCH_SYMBOL::GetSchSymbolLibraryName() const void SCH_SYMBOL::SetLibSymbol( const LIB_SYMBOL* aLibSymbol ) { - if( !aLibSymbol ) - { - wxFAIL_MSG( "SCH_SYMBOL::SetLibSymbol() called with NULL pointer" ); - aLibSymbol = LIB_SYMBOL::Dummy(); - } + wxASSERT_MSG( aLibSymbol, wxT( "SCH_SYMBOL::SetLibSymbol() called with NULL pointer" ) ); m_part.reset( aLibSymbol->Flatten().release() ); m_part->SetParent();