From 07b250af311a05c9d44f9a152dac06d2ffa90def Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 16 Sep 2021 17:32:59 -0700 Subject: [PATCH] IntStack: remove commented out code --- lib/sparse/IntStack.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/lib/sparse/IntStack.c b/lib/sparse/IntStack.c index 65a69722b..9fc392c51 100644 --- a/lib/sparse/IntStack.c +++ b/lib/sparse/IntStack.c @@ -62,31 +62,3 @@ void IntStack_print(IntStack s){ for (i = 0; i <= s->last; i++) fprintf(stderr,"%d,",s->stack[i]); fprintf(stderr,"\n"); } - -/* -main(){ - - IntStack s; - int i, len = 1, pos, flag; - - for (;;){ - s = IntStack_new(); - fprintf(stderr,"=============== stack with %d elements ============\n",len); - for (i = 0; i < len; i++){ - pos = IntStack_push(s, i); - if (pos < 0){ - fprintf(stderr," fail to push element %d, quit\n", i); - exit(1); - } - } - for (i = 0; i < len+1; i++){ - IntStack_pop(s, &flag); - if (flag) { - fprintf(stderr, "no more element\n"); - } - } - IntStack_delete(s); - len *= 2; - } -} -*/ -- 2.40.0