diff options
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/list.c b/src/list.c index b360fe65a..6a54d8a5f 100644 --- a/src/list.c +++ b/src/list.c @@ -282,21 +282,6 @@ int findInList(List * list, char *key, void **data) return 0; } -ListNode *getNodeByPosition(List *list, int pos) -{ - ListNode *tmpNode; - - assert(list != NULL); - if (pos < 0 || pos >= list->numberOfNodes) - return NULL; - - tmpNode = list->firstNode; - while (pos-- > 0) - tmpNode = tmpNode->nextNode; - - return tmpNode; -} - int deleteFromList(List * list, char *key) { ListNode *tmpNode; |