From 3561efa684a3cc036893387b5bdbc03a00af02ca Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 28 May 2022 10:31:54 -0700 Subject: [PATCH] label: remove unused 'rtp' parameter to 'RTreeNewIndex' --- lib/label/index.c | 5 ++--- lib/label/index.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/label/index.c b/lib/label/index.c index bc3869cbe..764323516 100644 --- a/lib/label/index.c +++ b/lib/label/index.c @@ -54,13 +54,12 @@ RTree_t *RTreeOpen() RTree_t *rtp; if ((rtp = calloc(1, sizeof(RTree_t)))) - rtp->root = RTreeNewIndex(rtp); + rtp->root = RTreeNewIndex(); return rtp; } /* Make a new index, empty. Consists of a single node. */ -Node_t *RTreeNewIndex(RTree_t * rtp) -{ +Node_t *RTreeNewIndex(void ) { Node_t *x = RTreeNewNode(); x->level = 0; /* leaf */ return x; diff --git a/lib/label/index.h b/lib/label/index.h index fb51d6107..db4d047d2 100644 --- a/lib/label/index.h +++ b/lib/label/index.h @@ -85,7 +85,7 @@ typedef struct ListNode { RTree_t *RTreeOpen(void); int RTreeClose(RTree_t * rtp); -Node_t *RTreeNewIndex(RTree_t * rtp); +Node_t *RTreeNewIndex(void); LeafList_t *RTreeSearch(RTree_t *, Node_t *, Rect_t *); int RTreeInsert(RTree_t *, Rect_t *, void *, Node_t **, int); -- 2.40.0