Remove useless void checks

This commit is contained in:
2026-05-26 19:24:17 -05:00
parent 1f2657cea0
commit 109318aeaf
16 changed files with 44 additions and 94 deletions
-9
View File
@@ -9,8 +9,6 @@
#include "display/color.h"
static void test_color3f_create(void **state) {
(void)state;
color3f_t color = color3f(0.1f, 0.2f, 0.3f);
assert_float_equal(color.r, 0.1f, 0.0001f);
assert_float_equal(color.g, 0.2f, 0.0001f);
@@ -18,8 +16,6 @@ static void test_color3f_create(void **state) {
}
static void test_color4f_create(void **state) {
(void)state;
color4f_t color = color4f(0.1f, 0.2f, 0.3f, 0.4f);
assert_float_equal(color.r, 0.1f, 0.0001f);
assert_float_equal(color.g, 0.2f, 0.0001f);
@@ -28,8 +24,6 @@ static void test_color4f_create(void **state) {
}
static void test_color3b_create(void **state) {
(void)state;
color3b_t color = color3b(10, 20, 30);
assert_int_equal(color.r, 10);
assert_int_equal(color.g, 20);
@@ -37,7 +31,6 @@ static void test_color3b_create(void **state) {
}
static void test_color4b_create(void **state) {
(void)state;
color4b_t color = color4b(10, 20, 30, 40);
assert_int_equal(color.r, 10);
@@ -47,7 +40,6 @@ static void test_color4b_create(void **state) {
}
static void test_color_create(void **state) {
(void)state;
color_t color = color(10, 20, 30, 40);
assert_int_equal(color.r, 10);
@@ -57,7 +49,6 @@ static void test_color_create(void **state) {
}
static void test_colorHex_create(void **state) {
(void)state;
color_t color = colorHex(0x11223344);
assert_int_equal(color.r, 0x11);