From: Kevin Day Date: Sat, 11 Dec 2021 04:54:42 +0000 (-0600) Subject: Update: Remove unecessary conflicts in to/from parameters. X-Git-Tag: 0.5.7~50 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9ecbb8c7d3056247f60494edab888b1ffe17c241;p=fll Update: Remove unecessary conflicts in to/from parameters. These parameters are already having the left to right order checked to determine which is the rightmost. Therefore, there never is a conflict. I am leaving the utf8_print_error_parameter_conflict() function in the code. There is the possibility of needing it later on. --- diff --git a/level_3/utf8/c/utf8.c b/level_3/utf8/c/utf8.c index eaae881..60b118c 100644 --- a/level_3/utf8/c/utf8.c +++ b/level_3/utf8/c/utf8.c @@ -236,22 +236,6 @@ extern "C" { return F_none; } - if (main->parameters[utf8_parameter_from_binary].result == f_console_result_found) { - if (main->parameters[utf8_parameter_from_codepoint].result == f_console_result_found) { - utf8_print_error_parameter_conflict(&data, utf8_long_from_binary_s, utf8_long_from_codepoint_s); - - status = F_status_set_error(F_parameter); - } - } - - if (F_status_is_error_not(status) && main->parameters[utf8_parameter_to_binary].result == f_console_result_found) { - if (main->parameters[utf8_parameter_to_codepoint].result == f_console_result_found) { - utf8_print_error_parameter_conflict(&data, utf8_long_to_binary_s, utf8_long_to_codepoint_s); - - status = F_status_set_error(F_parameter); - } - } - if (F_status_is_error_not(status)) { if (main->parameters[utf8_parameter_from_file].result == f_console_result_additional) { f_array_length_t i = 0;