summaryrefslogtreecommitdiffstats
path: root/src/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/vector.c b/src/vector.c
index c2b4dc1..cdf1e65 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -59,8 +59,6 @@ void _fastd_vector_resize(fastd_vector_desc_t *desc, void **data, size_t n, size
while (alloc < n)
alloc <<= 1;
- while (alloc > n*3 && alloc > MIN_VECTOR_ALLOC)
- alloc >>= 1;
if (alloc != desc->allocated) {
desc->allocated = alloc;