summaryrefslogtreecommitdiffstats
path: root/src/p_line.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p_line.c')
-rw-r--r--src/p_line.c21
1 files changed, 0 insertions, 21 deletions
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 ;