From 97103f860d48e1f6f9c0dd7c75568618f8ed5163 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 4 Jul 2011 08:38:09 +1000 Subject: Remove alpm_list_first The only thing this accessor did was remove the const qualifier given our entire list implementation requires passing around the head anyway. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- lib/libalpm/alpm_list.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/libalpm/alpm_list.c') diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c index 1976e13d..38cefa62 100644 --- a/lib/libalpm/alpm_list.c +++ b/lib/libalpm/alpm_list.c @@ -506,22 +506,6 @@ alpm_list_t SYMEXPORT *alpm_list_reverse(alpm_list_t *list) /* Accessors */ -/** - * @brief Get the first element of a list. - * - * @param list the list - * - * @return the first element in the list - */ -inline alpm_list_t SYMEXPORT *alpm_list_first(const alpm_list_t *list) -{ - if(list) { - return (alpm_list_t *)list; - } else { - return NULL; - } -} - /** * @brief Return nth element from list (starting from 0). * -- cgit v1.2.3-24-g4f1b