Remove old code that was only needed when we auto-added netclasses...

... to netclass flags.  They're now directive labels and the netclass
field isn't auto-added anymore.  However, we *do* auto-add an intersheet
refs field, and that's required.
This commit is contained in:
Jeff Young 2022-12-04 21:05:04 +00:00
parent 1855885d1e
commit f50b9799a6
1 changed files with 0 additions and 4 deletions

View File

@ -3733,10 +3733,6 @@ SCH_TEXT* SCH_SEXPR_PARSER::parseSchText()
wxCHECK_MSG( false, nullptr, "Cannot parse " + GetTokenString( CurTok() ) + " as text." );
}
// Clear any auto-created fields; we want what's in the file and only what's in the file
if( text->Type() != SCH_TEXT_T )
static_cast<SCH_LABEL_BASE*>( text.get() )->GetFields().clear();
// We'll reset this if we find a fields_autoplaced token
text->ClearFieldsAutoplaced();