From 011e619c42970769951ada8ac0c99e6df89e801e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 30 Nov 2025 19:49:06 -0600 Subject: [PATCH] Update: Remove n longer valid *_delete_simple and *_destroy_simple macros. --- level_0/f_account/c/account/common.h | 3 --- level_0/f_account/tests/unit/c/test-account-by_id.c | 6 +++--- level_0/f_account/tests/unit/c/test-account-by_name.c | 6 +++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/level_0/f_account/c/account/common.h b/level_0/f_account/c/account/common.h index 1c386e6..983e1b5 100644 --- a/level_0/f_account/c/account/common.h +++ b/level_0/f_account/c/account/common.h @@ -71,9 +71,6 @@ extern "C" { macro_f_string_dynamic_t_clear(account.password) \ macro_f_string_dynamic_t_clear(account.shell) \ } - - #define macro_f_account_t_delete_simple(accounts) f_account_delete(&accounts); - #define macro_f_account_t_destroy_simple(accounts) f_account_destroy(&accounts); #endif // _di_f_account_t_ /** diff --git a/level_0/f_account/tests/unit/c/test-account-by_id.c b/level_0/f_account/tests/unit/c/test-account-by_id.c index dd2545f..93cc1fc 100644 --- a/level_0/f_account/tests/unit/c/test-account-by_id.c +++ b/level_0/f_account/tests/unit/c/test-account-by_id.c @@ -44,7 +44,7 @@ void test__f_account_by_id__fails(void **state) { assert_int_equal(status, F_status_set_error(statuss[i])); } // for - macro_f_account_t_delete_simple(account); + f_account_delete(&account); } void test__f_account_by_id__not_found(void **state) { @@ -67,7 +67,7 @@ void test__f_account_by_id__not_found(void **state) { assert_int_equal(status, F_exist_not); } - macro_f_account_t_delete_simple(account); + f_account_delete(&account); } void test__f_account_by_id__parameter_checking(void **state) { @@ -115,7 +115,7 @@ void test__f_account_by_id__works(void **state) { assert_string_equal(account.shell.string, password.pw_shell); } - macro_f_account_t_delete_simple(account); + f_account_delete(&account); } #ifdef __cplusplus diff --git a/level_0/f_account/tests/unit/c/test-account-by_name.c b/level_0/f_account/tests/unit/c/test-account-by_name.c index 8e5245a..2e2a8ea 100644 --- a/level_0/f_account/tests/unit/c/test-account-by_name.c +++ b/level_0/f_account/tests/unit/c/test-account-by_name.c @@ -48,7 +48,7 @@ void test__f_account_by_name__fails(void **state) { assert_int_equal(status, F_status_set_error(statuss[i])); } // for - macro_f_account_t_delete_simple(account); + f_account_delete(&account); } void test__f_account_by_name__not_found(void **state) { @@ -73,7 +73,7 @@ void test__f_account_by_name__not_found(void **state) { assert_int_equal(status, F_exist_not); } - macro_f_account_t_delete_simple(account); + f_account_delete(&account); } void test__f_account_by_name__parameter_checking(void **state) { @@ -125,7 +125,7 @@ void test__f_account_by_name__works(void **state) { assert_string_equal(account.shell.string, password.pw_shell); } - macro_f_account_t_delete_simple(account); + f_account_delete(&account); } #ifdef __cplusplus -- 1.8.3.1