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);