mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Remove dead code.
This commit is contained in:
parent
cecf29dd02
commit
8968ff62e3
@ -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 )
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user