summaryrefslogtreecommitdiffstats
path: root/lib/vector.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-07-21 18:46:58 +0200
committerDonald Sharp <sharpd@nvidia.com>2024-07-31 14:08:53 +0200
commit05e915984c641d59b4d4b0e83c1f301de4cba460 (patch)
tree92808be60d0155f8890395e5a92055fd43d27c30 /lib/vector.c
parentMerge pull request #16496 from donaldsharp/topotest_hints (diff)
downloadfrr-05e915984c641d59b4d4b0e83c1f301de4cba460.tar.xz
frr-05e915984c641d59b4d4b0e83c1f301de4cba460.zip
lib: remove unused vector_copy()
Not used anywhere in FRR, kill it. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vector.c')
-rw-r--r--lib/vector.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/vector.c b/lib/vector.c
index 60d383101..16b45254c 100644
--- a/lib/vector.c
+++ b/lib/vector.c
@@ -34,22 +34,6 @@ void vector_free(vector v)
XFREE(MTYPE_VECTOR, v);
}
-vector vector_copy(vector v)
-{
- unsigned int size;
- vector new = XCALLOC(MTYPE_VECTOR, sizeof(struct _vector));
-
- new->active = v->active;
- new->alloced = v->alloced;
- new->count = v->count;
-
- size = sizeof(void *) * (v->alloced);
- new->index = XCALLOC(MTYPE_VECTOR_INDEX, size);
- memcpy(new->index, v->index, size);
-
- return new;
-}
-
/* Check assigned index, and if it runs short double index pointer */
void vector_ensure(vector v, unsigned int num)
{