From f7449d8014219b9c97f9e2b05443f35ae17a769b Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Mon, 15 Jan 2024 22:36:25 +0000 Subject: [PATCH] Remove aabb from the nodes module --- include/nodes.h | 1 - src/nodes.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/nodes.h b/include/nodes.h index 93dc072..00a4685 100644 --- a/include/nodes.h +++ b/include/nodes.h @@ -37,7 +37,6 @@ struct node { node_data_t data; }; -bool aabb(const node_t *node, i32 x, i32 y); void draw_node(const window_t *wnd, const node_t *node); #endif // !NODES_H diff --git a/src/nodes.c b/src/nodes.c index d73309c..0e708b5 100644 --- a/src/nodes.c +++ b/src/nodes.c @@ -22,11 +22,6 @@ INTERNAL node_colours_t colours[COUNT_NODE_TYPES] = { }, }; -bool aabb(const node_t *node, i32 x, i32 y) { - return x > node->rect.topleft.x && x <= node->rect.topleft.x + node->rect.w && - y > node->rect.topleft.y && y <= node->rect.topleft.y + node->rect.h; -} - void draw_node(const window_t *wnd, const node_t *node) { fill_rect(wnd, &(node->rect), colours[node->type].fill); draw_rect(wnd, &(node->rect), colours[node->type].border);