summaryrefslogtreecommitdiff
path: root/toxcore/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/list.c')
-rw-r--r--toxcore/list.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/toxcore/list.c b/toxcore/list.c
index cb3c71cc..fca8cea8 100644
--- a/toxcore/list.c
+++ b/toxcore/list.c
@@ -248,13 +248,3 @@ int bs_list_remove(BS_List *list, const uint8_t *data, int id)
248 248
249 return 1; 249 return 1;
250} 250}
251
252int bs_list_trim(BS_List *list)
253{
254 if (!resize(list, list->n)) {
255 return 0;
256 }
257
258 list->capacity = list->n;
259 return 1;
260}