diff --git a/src/spicelib/devices/txl/Makefile.am b/src/spicelib/devices/txl/Makefile.am index 0e07d1a38..294abd505 100644 --- a/src/spicelib/devices/txl/Makefile.am +++ b/src/spicelib/devices/txl/Makefile.am @@ -9,7 +9,6 @@ libtxl_la_SOURCES = \ txldefs.h \ txldest.c \ txlext.h \ - txlfbr.c \ txlinit.h \ txlitf.h \ txlload.c \ diff --git a/src/spicelib/devices/txl/txldefs.h b/src/spicelib/devices/txl/txldefs.h index 7452ea385..9999913f9 100644 --- a/src/spicelib/devices/txl/txldefs.h +++ b/src/spicelib/devices/txl/txldefs.h @@ -27,7 +27,6 @@ typedef struct sTXLinstance { TXLine *txline2; /* pointer to SWEC txline type. temporary storage */ char *in_node_name; char *out_node_name; - int TXLbranch; /* unused */ double *TXLposPosptr; double *TXLposNegptr; diff --git a/src/spicelib/devices/txl/txlext.h b/src/spicelib/devices/txl/txlext.h index 1211b71d0..a71a53d9a 100644 --- a/src/spicelib/devices/txl/txlext.h +++ b/src/spicelib/devices/txl/txlext.h @@ -3,7 +3,6 @@ extern int TXLaccept(CKTcircuit*,GENmodel*); extern int TXLask(CKTcircuit*, GENinstance*, int, IFvalue*, IFvalue*); extern int TXLdelete(GENmodel*,IFuid,GENinstance**); extern void TXLdestroy(GENmodel**); -extern int TXLfindBr(CKTcircuit*, GENmodel*, IFuid); extern int TXLload(GENmodel*,CKTcircuit*); extern int TXLmodAsk(CKTcircuit*, GENmodel*, int, IFvalue*); diff --git a/src/spicelib/devices/txl/txlfbr.c b/src/spicelib/devices/txl/txlfbr.c deleted file mode 100644 index be6f423a6..000000000 --- a/src/spicelib/devices/txl/txlfbr.c +++ /dev/null @@ -1,37 +0,0 @@ -/********** -Copyright 1992 Regents of the University of California. All rights -reserved. -Author: 1992 Charles Hough -**********/ - - -#include "ngspice/ngspice.h" -#include "ngspice/cktdefs.h" -#include "txldefs.h" -#include "ngspice/sperror.h" -#include "ngspice/suffix.h" - - -int -TXLfindBr(CKTcircuit *ckt, GENmodel *inModel, IFuid name) -{ - TXLmodel *model = (TXLmodel *)inModel; - TXLinstance *here; - int error; - CKTnode *tmp; - - for( ; model != NULL; model = model->TXLnextModel) { - for (here = model->TXLinstances; here != NULL; - here = here->TXLnextInstance) { - if(here->TXLname == name) { - if(here->TXLbranch == 0) { - error = CKTmkCur(ckt,&tmp,here->TXLname,"branch"); - if(error) return(error); - here->TXLbranch = tmp->number; - } - return(here->TXLbranch); - } - } - } - return(0); -} diff --git a/src/spicelib/devices/txl/txlsetup.c b/src/spicelib/devices/txl/txlsetup.c index 624976862..1840f2beb 100644 --- a/src/spicelib/devices/txl/txlsetup.c +++ b/src/spicelib/devices/txl/txlsetup.c @@ -179,7 +179,6 @@ TXLunsetup(GENmodel *inModel, CKTcircuit *ckt) CKTdltNNum(ckt, here->TXLibr2); here->TXLibr2 = 0; } - // FIXME TXLbranch here->TXLdcGiven=0;