summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-06 15:24:55 -0400
committerpommicket <pommicket@gmail.com>2023-08-06 15:24:55 -0400
commit823815101f55ca0ce67f36867b93934ccdba1953 (patch)
tree2766bf1cf860245445e52aa4626b0005fb701e4d /util.c
parent52da64686fb506372fa09ab562915f895cd88cb9 (diff)
silence weird opengl warning
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/util.c b/util.c
index 8ba700c..7d5a853 100644
--- a/util.c
+++ b/util.c
@@ -790,10 +790,6 @@ bool rect_contains_point(Rect r, vec2 point) {
return rect_contains_point_v2(r.pos, r.size, point);
}
-Rect rect_translate(Rect r, vec2 by) {
- return rect(vec2_add(r.pos, by), r.size);
-}
-
float rect_x1(Rect r) { return r.pos.x; }
float rect_y1(Rect r) { return r.pos.y; }
float rect_x2(Rect r) { return r.pos.x + r.size.x; }