Sim Model Editor: Don't throw an error on opening a NONE model

This commit is contained in:
Mikolaj Wielgus 2022-11-18 09:06:55 +01:00
parent 28e978ccc9
commit 0f4cc2450d
1 changed files with 0 additions and 4 deletions

View File

@ -541,10 +541,6 @@ std::unique_ptr<SIM_MODEL> SIM_MODEL::Create( unsigned aSymbolPinCount,
const std::vector<T>& aFields )
{
TYPE type = ReadTypeFromFields( aFields, aSymbolPinCount );
if( type == TYPE::NONE )
THROW_IO_ERROR( wxString::Format( _( "Failed to read simulation model from fields." ) ) );
std::unique_ptr<SIM_MODEL> model = SIM_MODEL::Create( type );
model->ReadDataFields( aSymbolPinCount, &aFields );