summaryrefslogtreecommitdiffstats
path: root/src/p_line.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 18:40:28 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-05 18:40:28 +0200
commitc75434256658e3009a5c61d02524cb49492bd120 (patch)
tree67715ca37c63883b84050598970e98eeeb1e2c67 /src/p_line.c
parentBetter defines (diff)
download42-minishell-c75434256658e3009a5c61d02524cb49492bd120.tar.gz
42-minishell-c75434256658e3009a5c61d02524cb49492bd120.tar.bz2
42-minishell-c75434256658e3009a5c61d02524cb49492bd120.tar.xz
42-minishell-c75434256658e3009a5c61d02524cb49492bd120.tar.zst
42-minishell-c75434256658e3009a5c61d02524cb49492bd120.zip
Clean af
Diffstat (limited to 'src/p_line.c')
-rw-r--r--src/p_line.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/p_line.c b/src/p_line.c
index 0224bbb..9c96610 100644
--- a/src/p_line.c
+++ b/src/p_line.c
@@ -37,22 +37,6 @@ static void
}
}
-static void
- p_subst_spaces(char line[])
-{
- char *ptr;
-
- ptr = line;
- while (*ptr != '\0')
- {
- if (ft_iswhitespace(*ptr) == TRUE)
- {
- *ptr = ' ';
- }
- ptr++;
- }
-}
-
static t_bool
p_check_whitespaces_only(char line[])
{
@@ -75,7 +59,6 @@ void
t_msh *msh)
{
p_delete_comments(line);
- p_subst_spaces(line);
if (p_check_whitespaces_only(line) == TRUE)
{
return ;