From 430fe4a55793714837bf6b659625ec05ca51eae2 Mon Sep 17 00:00:00 2001 From: NatsuDrag9 Date: Wed, 20 Jun 2018 10:33:08 +0530 Subject: Solved Segmenation Fault error and removed unnecessary print statements. --- ldmicro/circuit.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'ldmicro/circuit.cpp') diff --git a/ldmicro/circuit.cpp b/ldmicro/circuit.cpp index 8b1a8e9..5f4bad9 100644 --- a/ldmicro/circuit.cpp +++ b/ldmicro/circuit.cpp @@ -37,12 +37,10 @@ static ElemSubcktSeries *LoadSeriesFromFile(FILE *f); //----------------------------------------------------------------------------- ElemLeaf *AllocLeaf(void) { - cout << "Inside AlocLeaf" << "\n"; return (ElemLeaf *)CheckMalloc(sizeof(ElemLeaf)); } ElemSubcktSeries *AllocSubcktSeries(void) { - cout << "Inside AllocSub" << "\n"; return (ElemSubcktSeries *)CheckMalloc(sizeof(ElemSubcktSeries)); } ElemSubcktParallel *AllocSubcktParallel(void) @@ -746,15 +744,11 @@ void DeleteSelectedRung(void) //----------------------------------------------------------------------------- static ElemSubcktSeries *AllocEmptyRung(void) { - cout << "Inside AllocEmpty" << "\n"; ElemSubcktSeries *s = AllocSubcktSeries(); - cout << "Checking series count" << "\n"; s->count = 1; - cout << "Series count done" << "\n"; s->contents[0].which = ELEM_PLACEHOLDER; ElemLeaf *l = AllocLeaf(); s->contents[0].d.leaf = l; - cout << "Exiting AllocEmpty" << "\n"; return s; } -- cgit