useless
authorChristian Grothoff <christian@grothoff.org>
Tue, 22 Sep 2009 19:13:41 +0000 (19:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 22 Sep 2009 19:13:41 +0000 (19:13 +0000)
src/util/container_heap.c

index fd5838f60cdccd449d92ef867b0a5644241079f7..c420a0ae44f955bbc898ac6df234a601bc2bb4ec 100644 (file)
@@ -124,12 +124,8 @@ GNUNET_CONTAINER_heap_create (enum GNUNET_CONTAINER_HeapOrder type)
 void
 GNUNET_CONTAINER_heap_destroy (struct GNUNET_CONTAINER_Heap *heap)
 {
-  void *unused;
   while (heap->size > 0)
-    {
-      unused = GNUNET_CONTAINER_heap_remove_root (heap);
-    }
-
+      GNUNET_CONTAINER_heap_remove_root (heap);
   GNUNET_free (heap);
   return;
 }