From 9ecbb8c7d3056247f60494edab888b1ffe17c241 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 10 Dec 2021 22:54:42 -0600 Subject: [PATCH] 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. --- level_3/utf8/c/utf8.c | 16 ---------------- 1 file changed, 16 deletions(-) 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; -- 1.8.3.1