]> Kevux Git Server - fll/commitdiff
Update: Remove unecessary conflicts in to/from parameters.
authorKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:54:42 +0000 (22:54 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 11 Dec 2021 04:54:42 +0000 (22:54 -0600)
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

index eaae881bb0d4252685818260dec4a664621b9f06..60b118c277c6617ae53973337f0ed6063aafcde9 100644 (file)
@@ -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;