summaryrefslogtreecommitdiff
path: root/lib/vector.c
diff options
context:
space:
mode:
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 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)
{