]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove max document length option descriptor
authorBastian Dehn <hhaalo@arcor.de>
Tue, 30 Jul 2024 11:31:12 +0000 (13:31 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 30 Jul 2024 11:31:12 +0000 (13:31 +0200)
src/kds_s2000w_option_descriptors.c

index 6f0a864fa5a47b012f757cbf9400b859346b2b9b..ae238910fa0fc74cc150554f9558ca4fe5abaac9 100644 (file)
@@ -446,29 +446,6 @@ SANE_Option_Descriptor _kds_s2000w_option_descriptor_binarization_contrast()
        return descriptor;
 }
 
-SANE_Option_Descriptor _kds_s2000w_option_descriptor_max_document_length()
-{
-       debug_printf(ALL, "kds_s2000w_option_descriptor_max_document_length");
-
-       constraint_max_document_length = malloc(sizeof(char*) * 2);
-       constraint_max_document_length[0] = "#NoPrimaryControl#";
-       constraint_max_document_length[1] = NULL;
-
-       SANE_Option_Descriptor descriptor = {
-               "maxdocumentlength",
-               "maxdocumentlength",
-               "maxdocumentlength",
-               SANE_TYPE_INT,
-               SANE_UNIT_NONE,
-               sizeof(SANE_Int),
-               SANE_CAP_SOFT_DETECT,
-               SANE_CONSTRAINT_STRING_LIST,
-               {.string_list = constraint_max_document_length}
-       };
-
-       return descriptor;
-}
-
 SANE_Option_Descriptor _kds_s2000w_option_descriptor_scan_source()
 {
        debug_printf(ALL, "kds_s2000w_option_descriptor_scan_source");