From: Matthew Fernandez Date: Tue, 16 Jun 2020 00:02:00 +0000 (-0700) Subject: remove incorrect commented out use of NEW() X-Git-Tag: 2.44.1~5^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7501ded2dc93f763e184b7b9317f0406d370470e;p=graphviz remove incorrect commented out use of NEW() This macro takes a type as its argument, not a size. This call would have resulted in an incorrect allocation of sizeof(size_t) bytes. --- diff --git a/lib/label/index.c b/lib/label/index.c index bd3dcd585..74fdb2857 100644 --- a/lib/label/index.c +++ b/lib/label/index.c @@ -468,14 +468,3 @@ RTreeDelete2(RTree_t * rtp, Rect_t * r, void *data, Node_t * n, return 1; } } - -#ifdef UNUSED -/* Allocate space for a node in the list used in DeletRect to -** store Nodes that are too empty. -*/ -struct ListNode *NewListNode() -{ - return (struct ListNode *) NEW(sizeof(struct ListNode)); -} - -#endif