diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-10-12 07:54:47 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-10-12 07:54:47 +0000 | 
| commit | b86c496307b2b284fabb1a33490163a78aeeb831 (patch) | |
| tree | 4f0d478f1dec33ea0719b1a1aed035598ed68c0c /common/list.c | |
| parent | 351ec5438c38eb319ff861f1498fa0dacb747e60 (diff) | |
Remove slist_insert_before as it is not needed anymore
Diffstat (limited to 'common/list.c')
| -rw-r--r-- | common/list.c | 30 | 
1 files changed, 0 insertions, 30 deletions
| diff --git a/common/list.c b/common/list.c index 65d83295..827f1789 100644 --- a/common/list.c +++ b/common/list.c @@ -70,36 +70,6 @@ struct slist *slist_prepend(struct slist *list, void *data)  	return entry;  } -struct slist *slist_insert_before(struct slist *list, struct slist *sibling, void *data) -{ -	struct slist *entry, *prev, *cur; - -	entry = malloc(sizeof(struct slist)); -	if (!entry) -		return list; - -	entry->data = data; -	entry->next = NULL; - -	if (!list) -		return entry; - -	for (cur = list, prev = NULL; cur != NULL; prev = cur, cur = prev->next) { -		if (cur == sibling) -			break; -	} - -	if (!prev) { -		entry->next = list; -		return entry; -	} - -	entry->next = prev->next; -	prev->next = entry; - -	return list; -} -  struct slist *slist_insert_sorted(struct slist *list, void *data, cmp_func_t cmp_func)  {  	struct slist *tmp, *prev, *entry; | 
