From 21ded04b0d694946a5660fc055beee788dc57bdf Mon Sep 17 00:00:00 2001 From: gwojda Date: Tue, 14 Mar 2017 10:14:16 +0100 Subject: [PATCH] #85 --- 42sh/src/completion/c_seek_env.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/42sh/src/completion/c_seek_env.c b/42sh/src/completion/c_seek_env.c index d69eb6c4..9fa8d0ea 100644 --- a/42sh/src/completion/c_seek_env.c +++ b/42sh/src/completion/c_seek_env.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/09 15:50:24 by gwojda #+# #+# */ -/* Updated: 2017/03/10 17:33:37 by gwojda ### ########.fr */ +/* Updated: 2017/03/14 10:10:19 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,15 +26,6 @@ static int c_storing(t_comp *c, char *value) return (0); } -static void c_maj_rcmd(t_comp *c, char *current_word) -{ - char *tmp; - - tmp = c->rcmd; - c->rcmd = ft_strdupi_w(current_word); - free(tmp); -} - int c_seek_env(t_comp *c, char *current_word) { char *match; @@ -44,7 +35,6 @@ int c_seek_env(t_comp *c, char *current_word) i = 0; env = data_singleton()->env; match = ft_strdupi_w(current_word + 1); - c_maj_rcmd(c, current_word); while (env[i]) { if (!ft_strncmp(match, env[i], ft_strlen(match)))