CKTfndMod(), cleanup
This commit is contained in:
parent
e7def1a0bc
commit
f0d36d956e
|
|
@ -617,8 +617,6 @@ finddev_special(
|
|||
return (*devptr)->GENmodPtr->GENmodType;
|
||||
}
|
||||
|
||||
// assert(second && *second == -1)
|
||||
// assert(third && *third == NULL)
|
||||
*modptr = ft_sim->findModel (ckt, name);
|
||||
if (*modptr) {
|
||||
*device_or_model = 1;
|
||||
|
|
@ -1213,8 +1211,6 @@ finddev(CKTcircuit *ckt, char *name, GENinstance **devptr, GENmodel **modptr)
|
|||
if (*devptr)
|
||||
return (*devptr)->GENmodPtr->GENmodType;
|
||||
|
||||
// assert(second && *second == -1)
|
||||
// assert(third && *third == NULL)
|
||||
*modptr = ft_sim->findModel (ckt, name);
|
||||
if (*modptr)
|
||||
return (*modptr)->GENmodType;
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ CKTmodCrt(CKTcircuit *ckt, int type, GENmodel **modfast, IFuid name)
|
|||
{
|
||||
GENmodel *mymodfast = NULL;
|
||||
|
||||
// assert(second)
|
||||
// assert(third && *third == NULL)
|
||||
mymodfast = CKTfndMod(ckt, name);
|
||||
if(!mymodfast) {
|
||||
mymodfast = (GENmodel *) tmalloc((size_t) *(DEVices[type]->DEVmodSize));
|
||||
|
|
|
|||
|
|
@ -305,8 +305,6 @@ URCunsetup(GENmodel *inModel, CKTcircuit *ckt)
|
|||
if (error && error != E_EXISTS)
|
||||
return error;
|
||||
|
||||
// assert(second && *second == -1)
|
||||
// assert(third && *third == NULL)
|
||||
modfast = CKTfndMod(ckt, varUid);
|
||||
if (!modfast)
|
||||
return E_NOMOD;
|
||||
|
|
@ -322,8 +320,6 @@ URCunsetup(GENmodel *inModel, CKTcircuit *ckt)
|
|||
if (error && error != E_EXISTS)
|
||||
return error;
|
||||
|
||||
// assert(second && *second == -1)
|
||||
// assert(third && *third == NULL)
|
||||
modfast = CKTfndMod(ckt, varUid);
|
||||
if (!modfast)
|
||||
return E_NOMOD;
|
||||
|
|
|
|||
|
|
@ -1397,8 +1397,6 @@ get_mod_param TCL_CMDPROCARGS(clientData, interp, argc, argv)
|
|||
devptr = ft_sim->findInstance (ft_curckt->ci_ckt, name);
|
||||
if (!devptr) {
|
||||
typecode = -1;
|
||||
// assert(second && *second == -1)
|
||||
// assert(third && *third == NULL)
|
||||
modptr = ft_sim->findModel (ft_curckt->ci_ckt, name);
|
||||
err = modptr ? OK : E_NOMOD;
|
||||
if (modptr)
|
||||
|
|
|
|||
Loading…
Reference in New Issue