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.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/p_line.c b/src/p_line.c
index 23a3896..6e02525 100644
--- a/src/p_line.c
+++ b/src/p_line.c
@@ -24,25 +24,7 @@ void
p_line(char line[],
t_msh *msh)
{
- char *ptr;
- uint64_t count;
-
- count = 0;
- ptr = line;
- while (*ptr != '\0')
- {
-
- if (*ptr == ';')
- {
- count += 1;
- }
- ptr++;
- }
- if (*(ptr - 1) == ';')
- {
- count -= 1;
- }
- if (p_lcom(line, count, msh) < 0)
+ if (p_lcom(line, msh) < 0)
{
f_alloc_and_destroy_msh(msh);
}