Commit 3d807061 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

sane.ds: Remove dead code (Clang).

parent 63b392b1
......@@ -1081,11 +1081,6 @@ static TW_UINT16 SANE_CAPFeederEnabled (pTW_CAPABILITY pCapability, TW_UINT16 ac
twCC = msg_set(pCapability, &val);
if (twCC == TWCC_SUCCESS)
{
if (val)
enabled = TRUE;
else
enabled = FALSE;
strcpy(source, "ADF");
status = sane_option_set_str(activeDS.deviceHandle, SANE_NAME_SCAN_SOURCE, source, NULL);
if (status != SANE_STATUS_GOOD)
......@@ -1109,7 +1104,6 @@ static TW_UINT16 SANE_CAPFeederEnabled (pTW_CAPABILITY pCapability, TW_UINT16 ac
strcpy(source, "Auto");
if (sane_option_set_str(activeDS.deviceHandle, SANE_NAME_SCAN_SOURCE, source, NULL) == SANE_STATUS_GOOD)
enabled = TRUE;
twCC = TWCC_SUCCESS;
/* .. fall through intentional .. */
case MSG_GETCURRENT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment