From f8ad05451831fee7cd983cd954942876c321a4b2 Mon Sep 17 00:00:00 2001 From: Michal Utlak Date: Tue, 9 Apr 2024 16:54:15 +0200 Subject: [PATCH] remove snake v2 --- cv9/snake.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cv9/snake.c b/cv9/snake.c index b33b25f..67c8963 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -20,10 +20,6 @@ struct snake* remove_snake(struct snake* snake){ struct snake* nova_hlavicka = snake->next; free(snake); - if (nova_hlavicka != NULL) { - nova_hlavicka->next = NULL; - } - return nova_hlavicka; }