From e5d9767ce2edaf1ad07f1601628059f0a636a0d3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 5 Aug 2024 21:59:22 -0500 Subject: [PATCH] Cleanup: Remove unused and commented out callback in fss_read. --- level_3/fss_read/c/basic/main.c | 1 - level_3/fss_read/c/basic_list/main.c | 1 - level_3/fss_read/c/embedded_list/main.c | 1 - level_3/fss_read/c/extended/main.c | 1 - level_3/fss_read/c/extended_list/main.c | 1 - level_3/fss_read/c/main/common/type.h | 2 -- level_3/fss_read/c/main/main.c | 7 ------- level_3/fss_read/c/payload/main.c | 1 - 8 files changed, 15 deletions(-) diff --git a/level_3/fss_read/c/basic/main.c b/level_3/fss_read/c/basic/main.c index 31802f3..3ffefea 100644 --- a/level_3/fss_read/c/basic/main.c +++ b/level_3/fss_read/c/basic/main.c @@ -36,7 +36,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { data.callback.print_at = &fss_read_print_at; data.callback.print_content = &fss_read_print_content; - //data.callback.print_content_empty = 0; data.callback.print_content_empty_set = &fss_read_print_content_empty_set_end; data.callback.print_content_ignore = 0; data.callback.print_content_next = 0; diff --git a/level_3/fss_read/c/basic_list/main.c b/level_3/fss_read/c/basic_list/main.c index f30ce67..7141d93 100644 --- a/level_3/fss_read/c/basic_list/main.c +++ b/level_3/fss_read/c/basic_list/main.c @@ -35,7 +35,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { data.callback.print_at = &fss_read_print_at; data.callback.print_content = &fss_read_print_content; - //data.callback.print_content_empty = 0; data.callback.print_content_empty_set = 0; data.callback.print_content_ignore = &fss_read_print_content_ignore; data.callback.print_content_next = 0; diff --git a/level_3/fss_read/c/embedded_list/main.c b/level_3/fss_read/c/embedded_list/main.c index f806c90..488bad7 100644 --- a/level_3/fss_read/c/embedded_list/main.c +++ b/level_3/fss_read/c/embedded_list/main.c @@ -36,7 +36,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { data.callback.print_at = &fss_read_print_at; data.callback.print_content = &fss_read_print_content; - //data.callback.print_content_empty = 0; data.callback.print_content_empty_set = 0; data.callback.print_content_ignore = &fss_read_print_content_ignore; data.callback.print_content_next = 0; diff --git a/level_3/fss_read/c/extended/main.c b/level_3/fss_read/c/extended/main.c index b68e61d..bdfb48c 100644 --- a/level_3/fss_read/c/extended/main.c +++ b/level_3/fss_read/c/extended/main.c @@ -36,7 +36,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { data.callback.print_at = &fss_read_print_at; data.callback.print_content = &fss_read_print_content; - //data.callback.print_content_empty = 0; data.callback.print_content_empty_set = &fss_read_print_content_empty_set_end; data.callback.print_content_ignore = &fss_read_print_content_ignore; data.callback.print_content_next = &fss_read_extended_print_data_content_next; diff --git a/level_3/fss_read/c/extended_list/main.c b/level_3/fss_read/c/extended_list/main.c index e2e4487..a60f176 100644 --- a/level_3/fss_read/c/extended_list/main.c +++ b/level_3/fss_read/c/extended_list/main.c @@ -35,7 +35,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { data.callback.print_at = &fss_read_print_at; data.callback.print_content = &fss_read_print_content; - //data.callback.print_content_empty = 0; data.callback.print_content_empty_set = 0; data.callback.print_content_ignore = &fss_read_print_content_ignore; data.callback.print_content_next = 0; diff --git a/level_3/fss_read/c/main/common/type.h b/level_3/fss_read/c/main/common/type.h index 1d70548..4c48614 100644 --- a/level_3/fss_read/c/main/common/type.h +++ b/level_3/fss_read/c/main/common/type.h @@ -131,7 +131,6 @@ extern "C" { * print_at: Print at the given location, usually called by the process_normal() callback. * print_object: Print the Object, usually called by the process_normal() callback. * print_content: Print the Content, usually called by the process_normal() callback. - * print_content_empty: Print something when the individual Content is empty (this is not about the Content set). * print_content_empty_set: Print something when the entire Content set is empty for the entire Content set. * print_content_ignore: Print the Content ignore character, usually called by several callbacks within the process_normal() callback for a pipe. * print_content_next: Print the Content next (content separator), usually called by several callbacks within the process_normal() callback. @@ -154,7 +153,6 @@ extern "C" { f_status_t (*print_at)(fl_print_t * const print, const f_number_unsigned_t at, const f_number_unsigneds_t delimits_object, const f_number_unsigneds_t delimits_content); f_status_t (*print_object)(fl_print_t * const print, const f_number_unsigned_t at, const f_number_unsigneds_t delimits); f_status_t (*print_content)(fl_print_t * const print, const f_range_t range, const uint8_t quote, const f_number_unsigneds_t delimits); - //f_status_t (*print_content_empty)(fl_print_t * const print); f_status_t (*print_content_empty_set)(fl_print_t * const print); f_status_t (*print_content_ignore)(fl_print_t * const print); f_status_t (*print_content_next)(fl_print_t * const print); diff --git a/level_3/fss_read/c/main/main.c b/level_3/fss_read/c/main/main.c index 6b8caee..e780591 100644 --- a/level_3/fss_read/c/main/main.c +++ b/level_3/fss_read/c/main/main.c @@ -111,7 +111,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.print_at = &fss_read_print_at; main->callback.print_content = &fss_read_print_content; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = &fss_read_print_content_empty_set_end; main->callback.print_content_ignore = 0; main->callback.print_content_next = 0; @@ -164,7 +163,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.process_total = &fss_read_process_normal_total; main->callback.print_content = &fss_read_print_content; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = &fss_read_print_content_empty_set_end; main->callback.print_content_ignore = 0; main->callback.print_content_next = 0; @@ -197,7 +195,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.process_load = &fss_read_extended_process_load; main->callback.process_total = &fss_read_process_normal_total; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = &fss_read_print_content_empty_set_end; main->callback.print_content_next = &fss_read_extended_print_data_content_next; main->callback.print_object_end = &fss_read_extended_print_data_object_end; @@ -228,7 +225,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.process_load = &fss_read_basic_list_process_load; main->callback.process_total = &fss_read_process_normal_total_multiple; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = 0; main->callback.print_content_next = 0; main->callback.print_object_end = &fss_read_basic_list_print_data_object_end; @@ -259,7 +255,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.process_load = &fss_read_extended_list_process_load; main->callback.process_total = &fss_read_process_normal_total_multiple; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = 0; main->callback.print_content_next = 0; main->callback.print_object_end = &fss_read_extended_list_print_data_object_end; @@ -290,7 +285,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.process_load = &fss_read_embedded_list_process_load; main->callback.process_total = &fss_read_process_normal_total_multiple; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = 0; main->callback.print_content_next = 0; main->callback.print_object_end = &fss_read_embedded_list_print_data_object_end; @@ -320,7 +314,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { main->callback.process_load = &fss_read_payload_process_load; main->callback.process_total = &fss_read_process_normal_total_multiple; - //main->callback.print_content_empty = 0; main->callback.print_content_empty_set = 0; main->callback.print_content_next = 0; main->callback.print_object_end = &fss_read_payload_print_data_object_end; diff --git a/level_3/fss_read/c/payload/main.c b/level_3/fss_read/c/payload/main.c index 6146ff4..bad567d 100644 --- a/level_3/fss_read/c/payload/main.c +++ b/level_3/fss_read/c/payload/main.c @@ -35,7 +35,6 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { data.callback.print_at = &fss_read_print_at; data.callback.print_content = &fss_read_print_content; - //data.callback.print_content_empty = 0; data.callback.print_content_empty_set = 0; data.callback.print_content_ignore = &fss_read_print_content_ignore; data.callback.print_content_next = 0; -- 1.8.3.1