eeschema: removed unused code

Fixes #11533
This commit is contained in:
Miklós Márton 2022-05-03 20:57:46 +02:00 committed by Jeff Young
parent 492259a1d4
commit 7e20c0ed9c
1 changed files with 0 additions and 5 deletions

View File

@ -1756,11 +1756,6 @@ int SCH_EDIT_TOOL::ChangeTextType( const TOOL_EVENT& aEvent )
if( convertTo != SCH_TEXT_T )
txt = EscapeString( txt, CTX_NETNAME );
std::vector<SCH_FIELD> fields;
if( text->Type() != SCH_TEXT_T )
fields = static_cast<SCH_LABEL_BASE*>( text )->GetFields();
switch( convertTo )
{
case SCH_LABEL_T: newtext = new SCH_LABEL( position, txt ); break;