From: Matthew Fernandez Date: Sat, 26 Jun 2021 04:56:45 +0000 (-0700) Subject: remove unused IntegerVector X-Git-Tag: 2.48.0~24^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=511f342a2f7c33a22ba795ee9ace64d820a81b2f;p=graphviz remove unused IntegerVector --- diff --git a/lib/sparse/vector.c b/lib/sparse/vector.c index e4f639fd1..47931b13b 100644 --- a/lib/sparse/vector.c +++ b/lib/sparse/vector.c @@ -73,39 +73,6 @@ int Vector_get_length(Vector v){ return v->len; } - - -/*---------------- integer vector --------------- */ - -Vector IntegerVector_new(int len){ - return Vector_new(len, sizeof(int), NULL); - -} -Vector IntegerVector_add(Vector v, int i){ - return Vector_add(v, &i); -} - -void IntegerVector_delete(Vector v){ - return Vector_delete(v); -} - -int* IntegerVector_get(Vector v, int i){ - int *p = Vector_get(v, i); - if (!p) return NULL; - return p; -} - -int IntegerVector_get_length(Vector v){ - return Vector_get_length(v); -} - -Vector IntegerVector_reset(Vector v, int content, int pos){ - return Vector_reset(v, &content, pos); -} - - - - /*---------------- string vector --------------- */ static void strdealloactor(void *v){ diff --git a/lib/sparse/vector.h b/lib/sparse/vector.h index 3e9af0798..7354911ea 100644 --- a/lib/sparse/vector.h +++ b/lib/sparse/vector.h @@ -49,17 +49,5 @@ Vector StringVector_reset(Vector v, char *content, int pos); void StringVector_fprint(FILE *fp, StringVector v); void StringVector_fprint1(FILE *fp, StringVector v); StringVector StringVector_part(StringVector v, int n, int *selected_list); -/*------------- integer vector ----------- */ - -typedef Vector IntegerVector; - -Vector IntegerVector_new(int len); -Vector IntegerVector_add(Vector v, int i); -void IntegerVector_delete(Vector v); -int* IntegerVector_get(Vector v, int i); -int IntegerVector_get_length(Vector v); -Vector IntegerVector_reset(Vector v, int content, int pos); - - #endif