From af3cc906185d7273cf82b1339b63843062898120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 6 Feb 2019 12:08:58 +0100 Subject: Code cleanup and add documentation. --- linked_list.inc.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'linked_list.inc.h') diff --git a/linked_list.inc.h b/linked_list.inc.h index 1522a685..e91cdc9f 100644 --- a/linked_list.inc.h +++ b/linked_list.inc.h @@ -17,15 +17,12 @@ INIT_F ( LLIST(TYPE) ) { FREE_F (LINK(TYPE)) { if (this->before != NULL) this->before->after = NULL; if (this->after != NULL) this->after->before = NULL; - // TODO how much of value do I really wanna free? - // Should I implement some form of shared pointer? if (this->value != NULL) FFREE(TYPE, this->value); return 0; } FREE_F( LLIST(TYPE) ) { - LINK(TYPE) *n, *next; n = this->head; while ( n != NULL ) { -- cgit v1.2.3