sane.ds: Remove dead code (Clang)
André Hentschel
nerv at dawncrow.de
Sun Nov 29 15:31:24 CST 2015
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
dlls/sane.ds/capability.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index 7d3376f..45c54a1 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -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:
--
1.9.1
More information about the wine-patches
mailing list