From ca2e36781039eb7e9901ccde395600e7af87ff4f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 15 Sep 2020 19:59:41 +0200 Subject: Huge fixes and stack stuff --- src/p_line.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/p_line.c') diff --git a/src/p_line.c b/src/p_line.c index cdb2fd4..c8381c8 100644 --- a/src/p_line.c +++ b/src/p_line.c @@ -21,26 +21,6 @@ #include "s_struct.h" #include "u_utils.h" -static void - p_delete_comments(char line[]) -{ - char *ptr; - - ptr = line; - while (*ptr != '\0') - { - if (*ptr == '#') - { - if ((ptr - line) == 0 || ft_iswhitespace(*(ptr - 1)) == TRUE) - { - *ptr = '\0'; - return ; - } - } - ptr++; - } -} - static t_bool p_check_whitespaces_only(char line[]) { @@ -61,7 +41,6 @@ static t_bool void p_line(char line[], t_msh *msh) { - p_delete_comments(line); if (p_check_whitespaces_only(line) == TRUE) { return ; -- cgit v1.2.3