Remove dead code.

This commit is contained in:
Jeff Young 2025-06-08 13:28:41 +01:00
parent cecf29dd02
commit 8968ff62e3
2 changed files with 11 additions and 14 deletions

View File

@ -98,10 +98,9 @@ bool SPICE_MODEL_PARSER::ReadType( const SIM_LIBRARY_SPICE& aLibrary, const std:
if( !sourceModel )
{
THROW_IO_ERROR( wxString::Format(
_( "Could not find model '%s' to copy for \"A Kind Of\" model '%s'" ),
akoName,
modelName ) );
THROW_IO_ERROR( wxString::Format( _( "Could not find parent model '%s' for \"A Kind Of\" model '%s'" ),
akoName,
modelName ) );
}
*aType = sourceModel->GetType();
@ -213,10 +212,9 @@ void SPICE_MODEL_PARSER::ReadModel( const SIM_LIBRARY_SPICE& aLibrary,
if( !sourceModel )
{
THROW_IO_ERROR( wxString::Format(
_( "Could not find model '%s' to copy for \"A Kind Of\" model '%s'" ),
akoName,
modelName ) );
THROW_IO_ERROR( wxString::Format( _( "Could not find parent model '%s' for \"A Kind Of\" model '%s'" ),
akoName,
modelName ) );
}
for( int i = 0; i < static_cast<int>( sourceModel->GetParamCount() ); ++i )

View File

@ -66,13 +66,12 @@ static double selectionToScale( int selection )
{
switch( selection )
{
default: return 1;
case 0: return 0;
case 2: return 1.5;
case 3: return 2;
case 4: return 3;
default: return 1.0;
case 0: return 0.0;
case 2: return 1.5;
case 3: return 2.0;
case 4: return 3.0;
}
return 1;
}