summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm_list.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-11 16:36:03 +0100
committerDan McGee <dan@archlinux.org>2007-11-11 16:51:09 +0100
commit7b4573d851464af53d34820769c0914f08c5ffeb (patch)
tree815a275071da1b4cc764c0a30b669ade36b4344c /lib/libalpm/alpm_list.c
parentdd0275b759752a4f1f561dc490823ca289abd717 (diff)
downloadpacman-7b4573d851464af53d34820769c0914f08c5ffeb.tar.gz
pacman-7b4573d851464af53d34820769c0914f08c5ffeb.tar.xz
Remove unused and broken alpm_list_remove_node function
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm_list.c')
-rw-r--r--lib/libalpm/alpm_list.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c
index 6f6ee8f0..d3a7951f 100644
--- a/lib/libalpm/alpm_list.c
+++ b/lib/libalpm/alpm_list.c
@@ -332,35 +332,6 @@ alpm_list_t SYMEXPORT *alpm_list_remove(alpm_list_t *haystack, const void *needl
}
/**
- * @brief Remove the node from the list that it belongs to.
- *
- * This DOES NOT free the node.
- *
- * @param node the list node we're removing
- *
- * @return the node which took the place of this one
- */
-alpm_list_t SYMEXPORT *alpm_list_remove_node(alpm_list_t *node)
-{
- if(!node) return(NULL);
-
- alpm_list_t *ret = NULL;
-
- if(node->prev) {
- node->prev->next = node->next;
- ret = node->prev;
- node->prev = NULL;
- }
- if(node->next) {
- node->next->prev = node->prev;
- ret = node->next;
- node->next = NULL;
- }
-
- return(ret);
-}
-
-/**
* @brief Create a new list without any duplicates.
*
* This does NOT copy data members.