From a485d8a2ba988df9d5433d2e13c326b2103e6412 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 28 Apr 2020 14:17:09 +0200 Subject: Removed useless function made obsolete by subst_var_value --- src/ft_u_utils.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/ft_u_utils.c') diff --git a/src/ft_u_utils.c b/src/ft_u_utils.c index 7e2eb53..b7ab7d8 100644 --- a/src/ft_u_utils.c +++ b/src/ft_u_utils.c @@ -26,23 +26,3 @@ uint64_t } return (argc); } - -char - *ft_get_home_dir(char **envp) -{ - char **ptr; - char *path; - - ptr = envp; - while (*ptr) - { - /* TODO: rework this correctly */ - if (ft_strncmp("HOME", *ptr, 4) == 0) - { - path = ft_substr(*ptr, 5, ft_strlen(*ptr + 5)); - return (path); - } - ptr++; - } - return (NULL); -} -- cgit v1.2.3