diff --git a/eeschema/sim/sim_model_tline.cpp b/eeschema/sim/sim_model_tline.cpp index 2857ef08bd..ab277afeea 100644 --- a/eeschema/sim/sim_model_tline.cpp +++ b/eeschema/sim/sim_model_tline.cpp @@ -70,9 +70,7 @@ std::string SPICE_GENERATOR_TLINE::ModelLine( const SPICE_ITEM& aItem ) const SIM_MODEL_TLINE::SIM_MODEL_TLINE( TYPE aType ) : - SIM_MODEL( aType, - std::make_unique( *this ) ), - m_isInferred( false ) + SIM_MODEL( aType, std::make_unique( *this ) ) { static std::vector z0 = makeZ0ParamInfos(); static std::vector rlgc = makeRlgcParamInfos(); @@ -100,7 +98,7 @@ void SIM_MODEL_TLINE::WriteDataSchFields( std::vector& aFields ) cons { SIM_MODEL::WriteDataSchFields( aFields ); - if( m_isInferred ) + if( IsInferred() ) inferredWriteDataFields( aFields ); } @@ -109,7 +107,7 @@ void SIM_MODEL_TLINE::WriteDataLibFields( std::vector& aFields ) cons { SIM_MODEL::WriteDataLibFields( aFields ); - if( m_isInferred ) + if( IsInferred() ) inferredWriteDataFields( aFields ); } diff --git a/eeschema/sim/sim_model_tline.h b/eeschema/sim/sim_model_tline.h index bbb91b09aa..4649b40c5c 100644 --- a/eeschema/sim/sim_model_tline.h +++ b/eeschema/sim/sim_model_tline.h @@ -54,8 +54,6 @@ private: static std::vector makeZ0ParamInfos(); static std::vector makeRlgcParamInfos(); - - bool m_isInferred; }; #endif // SIM_MODEL_TLINE_H