From dacbc0043eef32d32f4b5abf18594b6dfb608a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Wed, 7 May 2014 00:04:37 +0200 Subject: [PATCH] =?UTF-8?q?core:queue:=20remove=C2=A0ancient=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/queue.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/core/queue.c b/core/queue.c index 8d65df3876..308e8178fb 100644 --- a/core/queue.c +++ b/core/queue.c @@ -17,7 +17,6 @@ * @} */ -#include #include #include @@ -115,42 +114,3 @@ void queue_print_node(queue_node_t *node) printf("Data: %u Priority: %" PRIu32 " Next: %u\n", (unsigned int)node->data, node->priority, (unsigned int)node->next); } #endif - -/* -int main() { - queue_node_t root, a, b, c,d; - - memset(&d, '\0', sizeof(queue_node_t)); - memset(&a, '\0', sizeof(queue_node_t)); - memset(&b, '\0', sizeof(queue_node_t)); - memset(&c, '\0', sizeof(queue_node_t)); - - root.data = 0; - root.next = NULL; - - a.data = 1; - a.priority = 1; - b.data = 2; - b.priority = 2; - c.data = 0; - c.priority = 5; - d.data = 4; - d.priority = 4; - - queue_add_tail(&root, &a); - queue_add_tail(&root, &b); - queue_add_tail(&root, &c); - queue_add_tail(&root, &d); - - queue_print(&root); - - queue_remove(&root, &c); - - queue_print(&root); - - queue_priority_add(&root, &c); - - queue_print(&root); - - return 0; -}*/