From 009982c890f099e02026610970450efc0d666e1a Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 12 Jul 2025 12:23:36 -0400 Subject: Remove unnecessary if statement --- src/main.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 45f9133..9400b75 100644 --- a/src/main.c +++ b/src/main.c @@ -56,11 +56,6 @@ int justify(size_t linebuffer_capacity, FILE *in, FILE *out) { linebuffer_destroy(lb); return EXIT_SUCCESS; } - if (word_length > MAX_WORD_LENGTH) { - // TODO: If the word is too long for a given line, - // we should wrap it to the next line. - word[MAX_WORD_LENGTH] = '*'; - } if (!linebuffer_append_word(lb, word)) { linebuffer_write_justified(lb, out); linebuffer_clear(lb); -- cgit v1.2.3