Browse Source

Pcb calculator: remove unused variable

Fixes https://gitlab.com/kicad/code/kicad/issues/3907
pull/16/head
Michael Kavanagh 6 years ago
committed by Ian McInerney
parent
commit
daa41c663b
  1. 2
      pcb_calculator/transline/rectwaveguide.cpp
  2. 1
      pcb_calculator/transline/rectwaveguide.h
  3. 1
      pcb_calculator/transline/transline.h
  4. 2
      pcb_calculator/transline_ident.cpp

2
pcb_calculator/transline/rectwaveguide.cpp

@ -35,7 +35,6 @@ RECTWAVEGUIDE::RECTWAVEGUIDE() : TRANSLINE()
// Initialize these here variables mainly to avoid warnings from a static analyzer
mur = 0.0; // magnetic permeability of substrate
tanm = 0.0; // Magnetic Loss Tangent
a = 0.0; // width of waveguide
b = 0.0; // height of waveguide
l = 0.0; // length of waveguide
@ -192,7 +191,6 @@ void RECTWAVEGUIDE::get_rectwaveguide_sub()
m_murC = getProperty( MURC_PRM );
m_sigma = 1.0 / getProperty( RHO_PRM );
m_tand = getProperty( TAND_PRM );
tanm = getProperty( TANM_PRM );
}

1
pcb_calculator/transline/rectwaveguide.h

@ -31,7 +31,6 @@ public: RECTWAVEGUIDE();
private:
double mur; // magnetic permeability of substrate
double tanm; // Magnetic Loss Tangent
double a; // width of waveguide
double b; // height of waveguide
double l; // length of waveguide

1
pcb_calculator/transline/transline.h

@ -42,7 +42,6 @@ enum PRMS_ID
MUR_PRM,
TWISTEDPAIR_EPSILONR_ENV_PRM,
MURC_PRM,
TANM_PRM,
FREQUENCY_PRM,
Z0_PRM,
Z0_E_PRM,

2
pcb_calculator/transline_ident.cpp

@ -241,8 +241,6 @@ TRANSLINE_IDENT::TRANSLINE_IDENT( enum TRANSLINE_TYPE_ID aType )
AddPrm( new TRANSLINE_PRM( PRM_TYPE_SUBS, MUR_PRM,
_( "mu Rel I:" ), _( "Relative Permeability (mu) of Insulator" ), 1, false ) );
AddPrm( new TRANSLINE_PRM( PRM_TYPE_SUBS, TANM_PRM,
_( "TanM:" ), _( "Magnetic Loss Tangent" ), 0, false ) );
AddPrm( new TRANSLINE_PRM( PRM_TYPE_SUBS, MURC_PRM,
_( "mu Rel C:" ), _( "Relative Permeability (mu) of Conductor" ), 1,
false ) );

Loading…
Cancel
Save