From 37040d7917928f5666717dc9b238a3246d470fbe Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 22 Oct 2020 16:26:01 +0200 Subject: Fix --- src/p_lblock.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/p_lblock.c') diff --git a/src/p_lblock.c b/src/p_lblock.c index 36f2e12..82d1b44 100644 --- a/src/p_lblock.c +++ b/src/p_lblock.c @@ -42,7 +42,7 @@ static uint8_t p_get_nextif(char *words[], size_t i) return (nextif); } -static t_bool p_find_good_pipe(const char word[]) +t_bool p_find_good_pipe(const char word[]) { char *ptr; t_quote_mode mode; @@ -76,16 +76,6 @@ static int8_t p_loop(char *words[], t_msh *msh) while (words[i] != NULL) { nextif = p_get_nextif(words, i); - if (p_find_good_pipe(words[i]) == TRUE) - { - if ((link = s_line_new(NULL, 0)) == NULL) - return (-1); - s_line_add_back(&msh->curr, link); - if ((s_split_pipes(words[i], msh)) == NULL) - return (-1); - i++; - continue ; - } if ((link = s_line_new(words[i], nextif)) == NULL) return (-1); s_line_add_back(&msh->curr, link); -- cgit v1.2.3