diff options
Diffstat (limited to 'src/c_lfiles.c')
-rw-r--r-- | src/c_lfiles.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/c_lfiles.c b/src/c_lfiles.c index 36976b6..cffe974 100644 --- a/src/c_lfiles.c +++ b/src/c_lfiles.c @@ -116,30 +116,6 @@ c_lfiles_new } struct lfiles_s* -c_lfiles_duplicate(struct lfiles_s** head) -{ - struct lfiles_s* dup_head; - struct lfiles_s* dup_link; - struct lfiles_s* origin; - - dup_head = NULL; - if (head == NULL) { - return (NULL); - } - origin = *head; - while (origin != NULL) { - dup_link = c_lfiles_new(origin->filename, origin->filetype); - if (dup_link == NULL) { - u_dump_errno(); - return (NULL); - } - origin = origin->next; - c_lfiles_add_back(&dup_head, dup_link); - } - return (dup_head); -} - -struct lfiles_s* c_lfiles_gather(void) { DIR* dirp; |