aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/utils.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-05-01 23:24:17 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-05-01 23:24:17 +0200
commit6b205041c5829dfdf00da8b20afa8f91814778be (patch)
tree583f75cabe50ea3786d12485ff744c89f3996074 /src/common/utils.c
parent04ade4f784565a2c3070e0457d987468d6201b3e (diff)
downloadblogc-6b205041c5829dfdf00da8b20afa8f91814778be.tar.gz
blogc-6b205041c5829dfdf00da8b20afa8f91814778be.tar.bz2
blogc-6b205041c5829dfdf00da8b20afa8f91814778be.zip
Revert "common: added bc_slist_remove"
This reverts commit 0cfb3dad5de015b658b0917c43fabe420781f39f.
Diffstat (limited to 'src/common/utils.c')
-rw-r--r--src/common/utils.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/common/utils.c b/src/common/utils.c
index 1d4a678..692d1ce 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -74,25 +74,6 @@ bc_slist_prepend(bc_slist_t *l, void *data)
}
-bc_slist_t*
-bc_slist_remove(bc_slist_t *l, bc_slist_t *r, bc_free_func_t free_func)
-{
- bc_slist_t *p = NULL;
- for (bc_slist_t *tmp = l; tmp != NULL; p = tmp, tmp = tmp->next) {
- if (tmp == r) {
- if (p == NULL)
- l = tmp->next;
- else
- p->next = tmp->next;
- if ((free_func != NULL) && (l->data != NULL))
- free_func(tmp->data);
- free(tmp);
- return l;
- }
- }
-}
-
-
void
bc_slist_free_full(bc_slist_t *l, bc_free_func_t free_func)
{