summaryrefslogtreecommitdiffstats
path: root/lib/vector.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-11-08 14:07:30 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2021-11-08 14:07:30 +0100
commit14ae4f17a8b9162645eb120dd5e64532527a32ee (patch)
treede0b60bdfc641bb7281a8bfcaa455cf9f625c023 /lib/vector.c
parenttests: add c-ares "exercise" tool (diff)
downloadfrr-14ae4f17a8b9162645eb120dd5e64532527a32ee.tar.xz
frr-14ae4f17a8b9162645eb120dd5e64532527a32ee.zip
lib: remove `vector_get_index()`
... its only purpose was to serve as a footgun, and all such uses have been eliminated now. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vector.c')
-rw-r--r--lib/vector.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/vector.c b/lib/vector.c
index 38f9b1b85..5497c2428 100644
--- a/lib/vector.c
+++ b/lib/vector.c
@@ -136,17 +136,6 @@ int vector_set_index(vector v, unsigned int i, void *val)
return i;
}
-/* Make a specified index slot active and return its address. */
-void **vector_get_index(vector v, unsigned int i)
-{
- vector_ensure(v, i);
-
- if (v->active <= i)
- v->active = i + 1;
-
- return &v->index[i];
-}
-
/* Look up vector. */
void *vector_lookup(vector v, unsigned int i)
{