From d83b9420ee736e420a3c3d6cf71d2d3128b60d6c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 29 Jun 2020 19:34:03 -0700 Subject: [PATCH] delete commented out development code in vector.c --- lib/sparse/vector.c | 70 --------------------------------------------- 1 file changed, 70 deletions(-) diff --git a/lib/sparse/vector.c b/lib/sparse/vector.c index e1ef123f0..0d2d500f3 100644 --- a/lib/sparse/vector.c +++ b/lib/sparse/vector.c @@ -179,73 +179,3 @@ StringVector StringVector_part(StringVector v, int n, int *selected_list){ } return u; } - - - - - - -/* -#include -int main(){ - IntegerVector v; - StringVector vs; - int i, *j; - char *s; - char **sp; - - for (;;){ - v = IntegerVector_new(1); - for (i = 0; i < 10; i++){ - IntegerVector_add(v, i); - } - - for (i = 0; i < Vector_get_length(v); i++){ - j = IntegerVector_get(v, i); - if (j) printf("element %d = %d\n",i,*j); - } - for (i = 0; i < 12; i++){ - IntegerVector_reset(v, i+10, i); - } - - for (i = 0; i < Vector_get_length(v); i++){ - j = IntegerVector_get(v, i); - if (j) printf("element %d = %d\n",i,*j); - } - - IntegerVector_delete(v); - } - - for (;;){ - - - v = StringVector_new(1, TRUE); - for (i = 0; i < 10; i++){ - s = malloc(sizeof(char)*2); - s[0] = '1'; - s[1] = '1'+i; - StringVector_add(v, s); - } - - for (i = 0; i < Vector_get_length(v); i++){ - sp = StringVector_get(v, i); - if (sp) printf("element %d = %s\n",i,*sp); - } - for (i = 0; i < 10; i++){ - s = malloc(sizeof(char)*2); - s[0] = '1'; - s[1] = '2'+i; - StringVector_reset(v, s, i); - } - - for (i = 0; i < Vector_get_length(v); i++){ - sp = StringVector_get(v, i); - if (sp) printf("element %d = %s\n",i,*sp); - } - - StringVector_delete(v); - - } -} -*/ - -- 2.40.0