diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2024-07-21 09:46:58 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-07-31 08:08:53 -0400 |
| commit | 05e915984c641d59b4d4b0e83c1f301de4cba460 (patch) | |
| tree | 92808be60d0155f8890395e5a92055fd43d27c30 /lib/vector.c | |
| parent | 26eceb2ed55c4fe36e5226eed330b5e4e55c7c7d (diff) | |
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.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/vector.c b/lib/vector.c index 60d383101a..16b45254cb 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) { |
